summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/matcher/expression_parser.h')
-rw-r--r--src/mongo/db/matcher/expression_parser.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/matcher/expression_parser.h b/src/mongo/db/matcher/expression_parser.h
index 0bde5027338..61a712b7d92 100644
--- a/src/mongo/db/matcher/expression_parser.h
+++ b/src/mongo/db/matcher/expression_parser.h
@@ -52,13 +52,14 @@ public:
*/
static StatusWithMatchExpression parse(const BSONObj& obj,
const ExtensionsCallback& extensionsCallback,
- CollatorInterface* collator) {
+ const CollatorInterface* collator) {
// The 0 initializes the match expression tree depth.
return MatchExpressionParser(&extensionsCallback, collator)._parse(obj, 0);
}
private:
- MatchExpressionParser(const ExtensionsCallback* extensionsCallback, CollatorInterface* collator)
+ MatchExpressionParser(const ExtensionsCallback* extensionsCallback,
+ const CollatorInterface* collator)
: _extensionsCallback(extensionsCallback), _collator(collator) {}
/**
@@ -155,7 +156,7 @@ private:
// Collator that constructed collation-aware MatchExpressions will use.
// We do not own this pointer - it has to live as long as the parser is active.
- CollatorInterface* _collator;
+ const CollatorInterface* _collator;
};
typedef stdx::function<StatusWithMatchExpression(