diff options
author | Eliot Horowitz <eliot@10gen.com> | 2013-06-05 11:48:11 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2013-06-05 11:49:39 -0400 |
commit | e0c8f9047f55ccfc1012c47689871d519f7f6dc0 (patch) | |
tree | 277c58700ab75633f51de4c28e3314b174c9c95d /src/mongo/db/matcher/expression_array.cpp | |
parent | c4378a6f860a68117b2c879944b3fe39ab6b3e75 (diff) | |
download | mongo-e0c8f9047f55ccfc1012c47689871d519f7f6dc0.tar.gz |
SERVER-9820: change ElementIterator::Element to Context
Diffstat (limited to 'src/mongo/db/matcher/expression_array.cpp')
-rw-r--r-- | src/mongo/db/matcher/expression_array.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/matcher/expression_array.cpp b/src/mongo/db/matcher/expression_array.cpp index b2330e82355..8332c47160f 100644 --- a/src/mongo/db/matcher/expression_array.cpp +++ b/src/mongo/db/matcher/expression_array.cpp @@ -36,7 +36,7 @@ namespace mongo { boost::scoped_ptr<ElementIterator> cursor( doc->getIterator( _elementPath ) ); while ( cursor->more() ) { - ElementIterator::Element e = cursor->next(); + ElementIterator::Context e = cursor->next(); if ( e.element().type() != Array ) continue; @@ -189,7 +189,7 @@ namespace mongo { bool AllElemMatchOp::matches( const MatchableDocument* doc, MatchDetails* details ) const { boost::scoped_ptr<ElementIterator> cursor( doc->getIterator( _elementPath ) ); while ( cursor->more() ) { - ElementIterator::Element e = cursor->next(); + ElementIterator::Context e = cursor->next(); if ( e.element().type() != Array ) continue; if ( _allMatch( e.element().Obj() ) ) |