diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2019-06-14 16:42:10 -0400 |
---|---|---|
committer | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2019-06-14 19:23:18 -0400 |
commit | 47b380f03e8898f4706ff01fa2be64dfb72e0dba (patch) | |
tree | fb3508758c9abd0e297afee43ac847bf5aebcbbb /src/mongo/db/ops | |
parent | b3c26131f6ab3f919beca658341e737de5d45683 (diff) | |
download | mongo-47b380f03e8898f4706ff01fa2be64dfb72e0dba.tar.gz |
SERVER-41071 Replace NULL and 0 with nullptr
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r-- | src/mongo/db/ops/insert.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/ops/parsed_delete.cpp | 4 | ||||
-rw-r--r-- | src/mongo/db/ops/parsed_update.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/ops/insert.cpp b/src/mongo/db/ops/insert.cpp index d891c998a7c..1939cbe1e3b 100644 --- a/src/mongo/db/ops/insert.cpp +++ b/src/mongo/db/ops/insert.cpp @@ -155,7 +155,7 @@ StatusWith<BSONObj> fixDocumentForInsert(ServiceContext* service, const BSONObj& if (e.type()) { b.append(e); } else { - b.appendOID("_id", NULL, true); + b.appendOID("_id", nullptr, true); } } diff --git a/src/mongo/db/ops/parsed_delete.cpp b/src/mongo/db/ops/parsed_delete.cpp index 63262fac82d..9e3a4f5250b 100644 --- a/src/mongo/db/ops/parsed_delete.cpp +++ b/src/mongo/db/ops/parsed_delete.cpp @@ -119,11 +119,11 @@ PlanExecutor::YieldPolicy ParsedDelete::yieldPolicy() const { } bool ParsedDelete::hasParsedQuery() const { - return _canonicalQuery.get() != NULL; + return _canonicalQuery.get() != nullptr; } std::unique_ptr<CanonicalQuery> ParsedDelete::releaseParsedQuery() { - invariant(_canonicalQuery.get() != NULL); + invariant(_canonicalQuery.get() != nullptr); return std::move(_canonicalQuery); } diff --git a/src/mongo/db/ops/parsed_update.cpp b/src/mongo/db/ops/parsed_update.cpp index c2e355e945a..039bd51f238 100644 --- a/src/mongo/db/ops/parsed_update.cpp +++ b/src/mongo/db/ops/parsed_update.cpp @@ -203,11 +203,11 @@ PlanExecutor::YieldPolicy ParsedUpdate::yieldPolicy() const { } bool ParsedUpdate::hasParsedQuery() const { - return _canonicalQuery.get() != NULL; + return _canonicalQuery.get() != nullptr; } std::unique_ptr<CanonicalQuery> ParsedUpdate::releaseParsedQuery() { - invariant(_canonicalQuery.get() != NULL); + invariant(_canonicalQuery.get() != nullptr); return std::move(_canonicalQuery); } |