summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2016-05-10 14:17:00 -0400
committerJason Carey <jcarey@argv.me>2016-06-17 17:56:11 -0400
commit907182f4672ab2dcea1e16da5366518a4e44fa8d (patch)
treeb74d4d9f97a3797b409db0f428ac05462501fa73 /src/mongo/db/commands
parent737d557b1729d8d6c2892832b75630f045787ec1 (diff)
downloadmongo-907182f4672ab2dcea1e16da5366518a4e44fa8d.tar.gz
SERVER-24651 Add and use string data literals
Replace StringData("foo", StringData::LiteralTag()) with "foo"_sd
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r--src/mongo/db/commands/user_management_commands_common.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/user_management_commands_common.cpp b/src/mongo/db/commands/user_management_commands_common.cpp
index 292c21a8255..72ef7f1d033 100644
--- a/src/mongo/db/commands/user_management_commands_common.cpp
+++ b/src/mongo/db/commands/user_management_commands_common.cpp
@@ -54,7 +54,7 @@ namespace auth {
void redactPasswordData(mutablebson::Element parent) {
namespace mmb = mutablebson;
- const StringData pwdFieldName("pwd", StringData::LiteralTag());
+ const auto pwdFieldName = "pwd"_sd;
for (mmb::Element pwdElement = mmb::findFirstChildNamed(parent, pwdFieldName); pwdElement.ok();
pwdElement = mmb::findElementNamed(pwdElement.rightSibling(), pwdFieldName)) {
pwdElement.setValueString("xxx");