Replace emptyObj with BSONObj()

This commit is contained in:
Aaron
2009-03-19 16:23:04 -04:00
parent fdde87047f
commit 5a276ef621
38 changed files with 171 additions and 185 deletions

View File

@@ -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();