diff options
Diffstat (limited to 'src/mongo/db/query/parsed_projection.cpp')
-rw-r--r-- | src/mongo/db/query/parsed_projection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/parsed_projection.cpp b/src/mongo/db/query/parsed_projection.cpp index 199b9abe557..f3ebf7736b0 100644 --- a/src/mongo/db/query/parsed_projection.cpp +++ b/src/mongo/db/query/parsed_projection.cpp @@ -127,7 +127,7 @@ Status ParsedProjection::make(const BSONObj& spec, // only parsing here in order to ensure that the elemMatch projection is valid. // // TODO: Is there a faster way of validating the elemMatchObj? - CollatorInterface* collator = nullptr; + const CollatorInterface* collator = nullptr; StatusWithMatchExpression statusWithMatcher = MatchExpressionParser::parse(elemMatchObj, extensionsCallback, collator); if (!statusWithMatcher.isOK()) { |