diff options
author | Tor Egge <Tor.Egge@online.no> | 2024-05-19 22:52:22 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2024-05-19 22:52:22 +0200 |
commit | 7d057ea51f67675b8214e99c64c0729471aa5dd3 (patch) | |
tree | 6a617f9f0d7ed5c11683fa799e4a605dabce988e /streamingvisitors | |
parent | 6e3cc46cf6717b58ab658d1efe6b44df0dbae77a (diff) |
Use const auto* to indicate that variable is a pointer.
Diffstat (limited to 'streamingvisitors')
-rw-r--r-- | streamingvisitors/src/vespa/searchvisitor/searchvisitor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/streamingvisitors/src/vespa/searchvisitor/searchvisitor.cpp b/streamingvisitors/src/vespa/searchvisitor/searchvisitor.cpp index 62f749462b5..7ecda0e82f1 100644 --- a/streamingvisitors/src/vespa/searchvisitor/searchvisitor.cpp +++ b/streamingvisitors/src/vespa/searchvisitor/searchvisitor.cpp @@ -607,7 +607,7 @@ SearchVisitor::AttributeInserter::onPrimitive(uint32_t, const Content & c) } else if (_attribute.isTensorType()) { auto tfvalue = dynamic_cast<const document::TensorFieldValue*>(&value); if (tfvalue != nullptr) { - auto tensor = tfvalue->getAsTensorPtr(); + const auto* tensor = tfvalue->getAsTensorPtr(); if (tensor != nullptr) { attr.add(*tensor, c.getWeight()); } |