summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_match.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/document_source_match.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_match.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_match.cpp b/src/mongo/db/pipeline/document_source_match.cpp
index 8b3f614e7ae..97238d491b4 100644
--- a/src/mongo/db/pipeline/document_source_match.cpp
+++ b/src/mongo/db/pipeline/document_source_match.cpp
@@ -105,7 +105,7 @@ namespace {
// the Match expression has been successfully parsed so they can assume that
// input is well formed.
- bool isAllDigits(const StringData& str) {
+ bool isAllDigits(StringData str) {
if (str.empty())
return false;
@@ -116,7 +116,7 @@ namespace {
return true;
}
- bool isFieldnameRedactSafe(const StringData& fieldName) {
+ bool isFieldnameRedactSafe(StringData fieldName) {
// Can't have numeric elements in the dotted path since redacting elements from an array
// would change the indexes.