diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-05-31 13:58:02 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-05-31 13:58:02 +0000 |
commit | e6a84d8c980dd090c243466b05f3d169d00348ad (patch) | |
tree | d8d57e7798ee16260094116d5df852bfb36bc226 /searchlib | |
parent | 693c5ed6605d5d8867ce9df568a0399f1f2ced7c (diff) |
Use std::move instead
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/expression/functionnode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/expression/functionnode.h b/searchlib/src/vespa/searchlib/expression/functionnode.h index 6b8b7548187..c2b7dff6a7a 100644 --- a/searchlib/src/vespa/searchlib/expression/functionnode.h +++ b/searchlib/src/vespa/searchlib/expression/functionnode.h @@ -16,7 +16,7 @@ public: ResultNode & updateResult() const { return *_tmpResult; } virtual void reset() { _tmpResult.reset(nullptr); } - FunctionNode &setResult(const ResultNode::CP & res) { _tmpResult = res; return *this; } + FunctionNode &setResult(const ResultNode::CP res) { _tmpResult = std::move(res); return *this; } protected: void setResultType(ResultNode::UP res) { _tmpResult = std::move(res); } void selectMembers(const vespalib::ObjectPredicate & predicate, vespalib::ObjectOperation & operation) override; |