aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/vespa/document/select/valuenode.h
diff options
context:
space:
mode:
Diffstat (limited to 'document/src/vespa/document/select/valuenode.h')
-rw-r--r--document/src/vespa/document/select/valuenode.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/document/src/vespa/document/select/valuenode.h b/document/src/vespa/document/select/valuenode.h
index 71efa73b1d8..fb86128aa2c 100644
--- a/document/src/vespa/document/select/valuenode.h
+++ b/document/src/vespa/document/select/valuenode.h
@@ -57,12 +57,11 @@ protected:
}
}
- ValueNode::UP wrapParens(ValueNode* node) const {
- ValueNode::UP ret(node);
+ std::unique_ptr<ValueNode> wrapParens(std::unique_ptr<ValueNode> node) const {
if (_parentheses) {
- ret->setParentheses();
+ node->setParentheses();
}
- return ret;
+ return node;
}
std::unique_ptr<Value> defaultTrace(std::unique_ptr<Value> val, std::ostream& out) const;