summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/modifier_set_test.cpp
diff options
context:
space:
mode:
authorTyler Brock <tyler.brock@gmail.com>2015-02-06 14:29:45 -0500
committerTyler Brock <tyler.brock@gmail.com>2015-02-06 16:37:35 -0500
commitaa9980b8c02de71c6918fba4aba9f22dd10eed01 (patch)
tree3ade9078069c7e1317a8b31c2e1fc427977d7abe /src/mongo/db/ops/modifier_set_test.cpp
parent3a7675bb6fa110a10be307db3201bfb348cf41cf (diff)
downloadmongo-aa9980b8c02de71c6918fba4aba9f22dd10eed01.tar.gz
SERVER-16940 Change pass-by-const-ref of StringData to pass-by-value
Diffstat (limited to 'src/mongo/db/ops/modifier_set_test.cpp')
-rw-r--r--src/mongo/db/ops/modifier_set_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/ops/modifier_set_test.cpp b/src/mongo/db/ops/modifier_set_test.cpp
index 48dbf556ba3..1a7e1db5a68 100644
--- a/src/mongo/db/ops/modifier_set_test.cpp
+++ b/src/mongo/db/ops/modifier_set_test.cpp
@@ -65,14 +65,14 @@ namespace {
ModifierSet::SET_ON_INSERT : ModifierSet::SET_NORMAL) {
_modObj = modObj;
- const StringData& modName = modObj.firstElement().fieldName();
+ StringData modName = modObj.firstElement().fieldName();
ASSERT_OK(_mod.init(_modObj[modName].embeddedObject().firstElement(),
!fromRepl ? ModifierInterface::Options::normal():
ModifierInterface::Options::fromRepl()));
}
Status prepare(Element root,
- const StringData& matchedField,
+ StringData matchedField,
ModifierInterface::ExecInfo* execInfo) {
return _mod.prepare(root, matchedField, execInfo);
}