summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/expression.h
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/pipeline/expression.h
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/pipeline/expression.h')
-rw-r--r--src/mongo/db/pipeline/expression.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/expression.h b/src/mongo/db/pipeline/expression.h
index 46caaa5f821..dc9d5ab6ac3 100644
--- a/src/mongo/db/pipeline/expression.h
+++ b/src/mongo/db/pipeline/expression.h
@@ -134,12 +134,12 @@ namespace mongo {
*
* NOTE: Name validation is responsibility of caller.
*/
- Variables::Id defineVariable(const StringData& name);
+ Variables::Id defineVariable(StringData name);
/**
* Returns the current Id for a variable. uasserts if the variable isn't defined.
*/
- Variables::Id getVariable(const StringData& name) const;
+ Variables::Id getVariable(StringData name) const;
private:
StringMap<Variables::Id> _variables;