summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/user_management_commands.cpp
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2019-06-14 16:42:10 -0400
committerA. Jesse Jiryu Davis <jesse@mongodb.com>2019-06-14 19:23:18 -0400
commit47b380f03e8898f4706ff01fa2be64dfb72e0dba (patch)
treefb3508758c9abd0e297afee43ac847bf5aebcbbb /src/mongo/db/commands/user_management_commands.cpp
parentb3c26131f6ab3f919beca658341e737de5d45683 (diff)
downloadmongo-47b380f03e8898f4706ff01fa2be64dfb72e0dba.tar.gz
SERVER-41071 Replace NULL and 0 with nullptr
Diffstat (limited to 'src/mongo/db/commands/user_management_commands.cpp')
-rw-r--r--src/mongo/db/commands/user_management_commands.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/commands/user_management_commands.cpp b/src/mongo/db/commands/user_management_commands.cpp
index c47ca33f94c..645820be5ff 100644
--- a/src/mongo/db/commands/user_management_commands.cpp
+++ b/src/mongo/db/commands/user_management_commands.cpp
@@ -882,7 +882,7 @@ public:
audit::logCreateUser(Client::getCurrent(),
args.userName,
args.hasPassword,
- args.hasCustomData ? &args.customData : NULL,
+ args.hasCustomData ? &args.customData : nullptr,
args.roles,
args.authenticationRestrictions);
status = insertPrivilegeDocument(opCtx, userObj);
@@ -1003,8 +1003,8 @@ public:
audit::logUpdateUser(Client::getCurrent(),
args.userName,
args.hasPassword,
- args.hasCustomData ? &args.customData : NULL,
- args.hasRoles ? &args.roles : NULL,
+ args.hasCustomData ? &args.customData : nullptr,
+ args.hasRoles ? &args.roles : nullptr,
args.authenticationRestrictions);
status = updatePrivilegeDocument(
@@ -2437,14 +2437,14 @@ public:
audit::logCreateUser(Client::getCurrent(),
userName,
hasPwd,
- userObj.hasField("customData") ? &customData : NULL,
+ userObj.hasField("customData") ? &customData : nullptr,
roles,
authenticationRestrictions);
} else {
audit::logUpdateUser(Client::getCurrent(),
userName,
hasPwd,
- userObj.hasField("customData") ? &customData : NULL,
+ userObj.hasField("customData") ? &customData : nullptr,
&roles,
authenticationRestrictions);
}