summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2018-08-30 10:21:14 +0000
committerTor Egge <Tor.Egge@oath.com>2018-08-30 10:21:14 +0000
commitc1b78b26fae047abb29701d3a4b92c414a4313b3 (patch)
treeb07bde1a6dde4e4b80050e9e62f89fdf3f498f52 /searchlib
parent0a0c2ed50aad5b29995d343d44a6d1405d0948f7 (diff)
Eliminate temporary raw pointer.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/expression/functionnode.h2
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 bf0c3d5fc04..8f4c2de6234 100644
--- a/searchlib/src/vespa/searchlib/expression/functionnode.h
+++ b/searchlib/src/vespa/searchlib/expression/functionnode.h
@@ -19,7 +19,7 @@ public:
FunctionNode &setResult(const ResultNode::CP res) { _tmpResult = res; return *this; }
protected:
- void setResultType(ResultNode::UP res) { _tmpResult.reset(res.release()); }
+ void setResultType(ResultNode::UP res) { _tmpResult = std::move(res); }
void selectMembers(const vespalib::ObjectPredicate & predicate, vespalib::ObjectOperation & operation) override;
private:
mutable ResultNode::CP _tmpResult;