aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/vespa/document/select/valuenodes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'document/src/vespa/document/select/valuenodes.cpp')
-rw-r--r--document/src/vespa/document/select/valuenodes.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/document/src/vespa/document/select/valuenodes.cpp b/document/src/vespa/document/select/valuenodes.cpp
index 1c7d47d0591..452779ca5ba 100644
--- a/document/src/vespa/document/select/valuenodes.cpp
+++ b/document/src/vespa/document/select/valuenodes.cpp
@@ -115,11 +115,28 @@ IntegerValueNode::print(std::ostream& out, bool verbose,
if (hadParentheses()) out << ')';
}
+void
+BoolValueNode::visit(Visitor& visitor) const
+{
+ visitor.visitBoolValueNode(*this);
+}
+
+void
+BoolValueNode::print(std::ostream& out,
+ [[maybe_unused]] bool verbose,
+ [[maybe_unused]] const std::string& indent) const
+{
+ if (hadParentheses()) out << '(';
+ out << bool_value_str();
+ if (hadParentheses()) out << ')';
+}
+
+
int64_t
CurrentTimeValueNode::getValue() const
{
struct timeval mytime;
- gettimeofday(&mytime, 0);
+ gettimeofday(&mytime, nullptr);
return mytime.tv_sec;
}