summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/canonical_query.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/canonical_query.cpp')
-rw-r--r--src/mongo/db/query/canonical_query.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/canonical_query.cpp b/src/mongo/db/query/canonical_query.cpp
index b1e89a0f30f..7a1bc7a11f1 100644
--- a/src/mongo/db/query/canonical_query.cpp
+++ b/src/mongo/db/query/canonical_query.cpp
@@ -55,7 +55,7 @@ namespace {
* Encode user-provided string. Cache key delimiters seen in the
* user string are escaped with a backslash.
*/
- void encodeUserString(const StringData& s, mongoutils::str::stream* os) {
+ void encodeUserString(StringData s, mongoutils::str::stream* os) {
for (size_t i = 0; i < s.size(); ++i) {
char c = s[i];
switch (c) {