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

@@ -138,7 +138,7 @@ int main() {
conn.insert( tsns , b.obj() );
}
mongo::BSONObj out = conn.findOne( tsns , mongo::emptyObj );
mongo::BSONObj out = conn.findOne( tsns , mongo::BSONObj() );
unsigned int inc = out["ts"].timestampInc();
{
@@ -152,7 +152,7 @@ int main() {
conn.update( tsns , b1.obj() , b2.obj() );
}
assert( conn.findOne( tsns , mongo::emptyObj )["ts"].timestampInc() == ( inc + 1 ) );
assert( conn.findOne( tsns , mongo::BSONObj() )["ts"].timestampInc() == ( inc + 1 ) );
}