diff options
Diffstat (limited to 'src/mongo/db/matcher/expression_tree.h')
-rw-r--r-- | src/mongo/db/matcher/expression_tree.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/matcher/expression_tree.h b/src/mongo/db/matcher/expression_tree.h index afecd935d79..b08ce6b03fb 100644 --- a/src/mongo/db/matcher/expression_tree.h +++ b/src/mongo/db/matcher/expression_tree.h @@ -110,7 +110,7 @@ public: AndMatchExpression() : ListOfMatchExpression(AND) {} virtual ~AndMatchExpression() {} - virtual bool matches(const MatchableDocument* doc, MatchDetails* details = 0) const; + virtual bool matches(const MatchableDocument* doc, MatchDetails* details = nullptr) const; bool matchesSingleElement(const BSONElement&, MatchDetails* details = nullptr) const final; @@ -139,7 +139,7 @@ public: OrMatchExpression() : ListOfMatchExpression(OR) {} virtual ~OrMatchExpression() {} - virtual bool matches(const MatchableDocument* doc, MatchDetails* details = 0) const; + virtual bool matches(const MatchableDocument* doc, MatchDetails* details = nullptr) const; bool matchesSingleElement(const BSONElement&, MatchDetails* details = nullptr) const final; @@ -168,7 +168,7 @@ public: NorMatchExpression() : ListOfMatchExpression(NOR) {} virtual ~NorMatchExpression() {} - virtual bool matches(const MatchableDocument* doc, MatchDetails* details = 0) const; + virtual bool matches(const MatchableDocument* doc, MatchDetails* details = nullptr) const; bool matchesSingleElement(const BSONElement&, MatchDetails* details = nullptr) const final; @@ -201,8 +201,8 @@ public: return std::move(self); } - virtual bool matches(const MatchableDocument* doc, MatchDetails* details = 0) const { - return !_exp->matches(doc, NULL); + virtual bool matches(const MatchableDocument* doc, MatchDetails* details = nullptr) const { + return !_exp->matches(doc, nullptr); } bool matchesSingleElement(const BSONElement& elt, MatchDetails* details = nullptr) const final { |