diff options
Diffstat (limited to 'src/mongo/db/query/query_solution.h')
-rw-r--r-- | src/mongo/db/query/query_solution.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/query_solution.h b/src/mongo/db/query/query_solution.h index 44c63d4bfb6..a665b823529 100644 --- a/src/mongo/db/query/query_solution.h +++ b/src/mongo/db/query/query_solution.h @@ -147,7 +147,7 @@ struct QuerySolutionNode { for (size_t i = 0; i < this->children.size(); i++) { other->children.push_back(this->children[i]->clone()); } - if (NULL != this->filter) { + if (nullptr != this->filter) { other->filter = this->filter->shallowClone(); } } @@ -229,7 +229,7 @@ struct QuerySolution { * Output a human-readable std::string representing the plan. */ std::string toString() { - if (NULL == root) { + if (nullptr == root) { return "empty query solution"; } |