Replace emptyObj with BSONObj()
This commit is contained in:
@@ -18,12 +18,12 @@ int main() {
|
||||
|
||||
const char * ns = "test.where";
|
||||
|
||||
conn.remove( ns , emptyObj );
|
||||
conn.remove( ns , BSONObj() );
|
||||
|
||||
conn.insert( ns , BSON( "name" << "eliot" << "num" << 17 ) );
|
||||
conn.insert( ns , BSON( "name" << "sara" << "num" << 24 ) );
|
||||
|
||||
auto_ptr<DBClientCursor> cursor = conn.query( ns , emptyObj );
|
||||
auto_ptr<DBClientCursor> cursor = conn.query( ns , BSONObj() );
|
||||
|
||||
while ( cursor->more() ) {
|
||||
BSONObj obj = cursor->next();
|
||||
|
||||
Reference in New Issue
Block a user