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/client.cpp | |
parent | b3c26131f6ab3f919beca658341e737de5d45683 (diff) | |
download | mongo-47b380f03e8898f4706ff01fa2be64dfb72e0dba.tar.gz |
SERVER-41071 Replace NULL and 0 with nullptr
Diffstat (limited to 'src/mongo/db/client.cpp')
-rw-r--r-- | src/mongo/db/client.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/client.cpp b/src/mongo/db/client.cpp index b177bc24e07..8c1eb3c3bfb 100644 --- a/src/mongo/db/client.cpp +++ b/src/mongo/db/client.cpp @@ -117,13 +117,13 @@ ServiceContext::UniqueOperationContext Client::makeOperationContext() { void Client::setOperationContext(OperationContext* opCtx) { // We can only set the OperationContext once before resetting it. - invariant(opCtx != NULL && _opCtx == NULL); + invariant(opCtx != nullptr && _opCtx == nullptr); _opCtx = opCtx; } void Client::resetOperationContext() { - invariant(_opCtx != NULL); - _opCtx = NULL; + invariant(_opCtx != nullptr); + _opCtx = nullptr; } std::string Client::clientAddress(bool includePort) const { |