summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/expression.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/expression.cpp')
-rw-r--r--src/mongo/db/pipeline/expression.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/expression.cpp b/src/mongo/db/pipeline/expression.cpp
index 376032da8d5..8dd46ed9f20 100644
--- a/src/mongo/db/pipeline/expression.cpp
+++ b/src/mongo/db/pipeline/expression.cpp
@@ -142,7 +142,7 @@ namespace mongo {
return Document();
}
- Variables::Id VariablesParseState::defineVariable(const StringData& name) {
+ Variables::Id VariablesParseState::defineVariable(StringData name) {
// caller should have validated before hand by using Variables::uassertValidNameForUserWrite
massert(17275, "Can't redefine ROOT",
name != "ROOT");
@@ -152,7 +152,7 @@ namespace mongo {
return id;
}
- Variables::Id VariablesParseState::getVariable(const StringData& name) const {
+ Variables::Id VariablesParseState::getVariable(StringData name) const {
StringMap<Variables::Id>::const_iterator it = _variables.find(name);
if (it != _variables.end())
return it->second;