From 755dee05b9bbc5059b61ec09085c8ef003eb3f74 Mon Sep 17 00:00:00 2001 From: Alberto Lerner Date: Sun, 8 Sep 2013 15:51:15 -0400 Subject: SERVER-10471 Fleshing out the new query planner / enumerator --- src/mongo/db/matcher/expression_array.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mongo/db/matcher/expression_array.cpp') diff --git a/src/mongo/db/matcher/expression_array.cpp b/src/mongo/db/matcher/expression_array.cpp index f0a09eba206..33c6814d6ce 100644 --- a/src/mongo/db/matcher/expression_array.cpp +++ b/src/mongo/db/matcher/expression_array.cpp @@ -93,7 +93,7 @@ namespace mongo { // ------- - Status ElemMatchObjectMatchExpression::init( const StringData& path, const MatchExpression* sub ) { + Status ElemMatchObjectMatchExpression::init( const StringData& path, MatchExpression* sub ) { _sub.reset( sub ); return initPath( path ); } @@ -129,7 +129,7 @@ namespace mongo { _subs.clear(); } - Status ElemMatchValueMatchExpression::init( const StringData& path, const MatchExpression* sub ) { + Status ElemMatchValueMatchExpression::init( const StringData& path, MatchExpression* sub ) { init( path ); add( sub ); return Status::OK(); @@ -140,7 +140,7 @@ namespace mongo { } - void ElemMatchValueMatchExpression::add( const MatchExpression* sub ) { + void ElemMatchValueMatchExpression::add( MatchExpression* sub ) { verify( sub ); _subs.push_back( sub ); } @@ -192,7 +192,7 @@ namespace mongo { return s; } - void AllElemMatchOp::add( const ArrayMatchingMatchExpression* expr ) { + void AllElemMatchOp::add( ArrayMatchingMatchExpression* expr ) { verify( expr ); _list.push_back( expr ); } -- cgit v1.2.1