diff options
Diffstat (limited to 'src/mongo/db/matcher/expression_tree.cpp')
-rw-r--r-- | src/mongo/db/matcher/expression_tree.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/matcher/expression_tree.cpp b/src/mongo/db/matcher/expression_tree.cpp index b56e96f4924..1fb9cbc4af5 100644 --- a/src/mongo/db/matcher/expression_tree.cpp +++ b/src/mongo/db/matcher/expression_tree.cpp @@ -241,7 +241,7 @@ bool AndMatchExpression::isTriviallyTrue() const { bool OrMatchExpression::matches(const MatchableDocument* doc, MatchDetails* details) const { for (size_t i = 0; i < numChildren(); i++) { - if (getChild(i)->matches(doc, NULL)) { + if (getChild(i)->matches(doc, nullptr)) { return true; } } @@ -284,7 +284,7 @@ bool OrMatchExpression::isTriviallyFalse() const { bool NorMatchExpression::matches(const MatchableDocument* doc, MatchDetails* details) const { for (size_t i = 0; i < numChildren(); i++) { - if (getChild(i)->matches(doc, NULL)) { + if (getChild(i)->matches(doc, nullptr)) { return false; } } |