diff options
author | Andy Schwerin <schwerin@10gen.com> | 2013-09-09 12:05:31 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@10gen.com> | 2013-09-09 12:05:31 -0400 |
commit | 861e7d14c7a84c241063107af7eae30fd90ba197 (patch) | |
tree | 9521316b43c6b4334483d18d7dd519467ef4dcc4 /src/mongo/db/matcher/path_test.cpp | |
parent | eb46cc62a0d6e08e2cabc0862490d76f2833e8b1 (diff) | |
download | mongo-861e7d14c7a84c241063107af7eae30fd90ba197.tar.gz |
SERVER-10715 Fix unit test compilation failure.
Diffstat (limited to 'src/mongo/db/matcher/path_test.cpp')
-rw-r--r-- | src/mongo/db/matcher/path_test.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mongo/db/matcher/path_test.cpp b/src/mongo/db/matcher/path_test.cpp index 0a9e1b05242..3efd140c259 100644 --- a/src/mongo/db/matcher/path_test.cpp +++ b/src/mongo/db/matcher/path_test.cpp @@ -42,7 +42,7 @@ namespace mongo { BSONObj doc = BSON( "x" << 4 << "a" << 5 ); - BSONElementIterator cursor( p, doc ); + BSONElementIterator cursor( &p, doc ); ASSERT( cursor.more() ); ElementIterator::Context e = cursor.next(); ASSERT_EQUALS( (string)"a", e.element().fieldName() ); @@ -56,7 +56,7 @@ namespace mongo { BSONObj doc = BSON( "x" << 4 << "a" << BSON_ARRAY( 5 << 6 ) ); - BSONElementIterator cursor( p, doc ); + BSONElementIterator cursor( &p, doc ); ASSERT( cursor.more() ); BSONElementIterator::Context e = cursor.next(); @@ -80,7 +80,7 @@ namespace mongo { BSONObj doc = BSON( "x" << 4 << "a" << BSON_ARRAY( 5 << 6 ) ); - BSONElementIterator cursor( p, doc ); + BSONElementIterator cursor( &p, doc ); ASSERT( cursor.more() ); BSONElementIterator::Context e = cursor.next(); @@ -99,7 +99,7 @@ namespace mongo { BSON( "b" << BSON_ARRAY( 9 << 11 ) ) << BSON( "b" << 7 ) ) ); - BSONElementIterator cursor( p, doc ); + BSONElementIterator cursor( &p, doc ); ASSERT( cursor.more() ); BSONElementIterator::Context e = cursor.next(); @@ -147,7 +147,7 @@ namespace mongo { BSON( "b" << BSON_ARRAY( 9 << 11 ) ) << BSON( "b" << 7 ) ) ); - BSONElementIterator cursor( p, doc ); + BSONElementIterator cursor( &p, doc ); ASSERT( cursor.more() ); BSONElementIterator::Context e = cursor.next(); @@ -181,7 +181,7 @@ namespace mongo { BSONObj doc = BSON( "a" << BSON_ARRAY( 5 << 7 << 3 ) ); - BSONElementIterator cursor( p, doc ); + BSONElementIterator cursor( &p, doc ); ASSERT( cursor.more() ); BSONElementIterator::Context e = cursor.next(); @@ -196,7 +196,7 @@ namespace mongo { BSONObj doc = BSON( "a" << BSON_ARRAY( 5 << BSON_ARRAY( 2 << 4 ) << 3 ) ); - BSONElementIterator cursor( p, doc ); + BSONElementIterator cursor( &p, doc ); ASSERT( cursor.more() ); BSONElementIterator::Context e = cursor.next(); @@ -211,7 +211,7 @@ namespace mongo { BSONObj doc = BSON( "a" << BSON_ARRAY( 5 << BSON( "1" << 4 ) << 3 ) ); - BSONElementIterator cursor( p, doc ); + BSONElementIterator cursor( &p, doc ); ASSERT( cursor.more() ); BSONElementIterator::Context e = cursor.next(); @@ -230,7 +230,7 @@ namespace mongo { BSONObj doc = BSON( "a" << BSON_ARRAY( 5 << BSON( "b" << 4 ) << 3 ) ); - BSONElementIterator cursor( p, doc ); + BSONElementIterator cursor( &p, doc ); ASSERT( cursor.more() ); BSONElementIterator::Context e = cursor.next(); @@ -250,7 +250,7 @@ namespace mongo { BSONObj doc = BSON( "a" << BSON_ARRAY( 5 << BSON_ARRAY( BSON( "b" << 4 ) ) << 3 ) ); - BSONElementIterator cursor( p, doc ); + BSONElementIterator cursor( &p, doc ); ASSERT( cursor.more() ); BSONElementIterator::Context e = cursor.next(); |