diff options
author | Dwight <dmerriman@gmail.com> | 2009-02-09 13:04:32 -0500 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2009-02-09 13:04:32 -0500 |
commit | 147948c7b33d4542a99352dd02ec3cb88f401a7c (patch) | |
tree | f7f2daa54521467911f742c42cfd073eb528f80c /dbtests/jsobjtests.cpp | |
parent | 10d5a55c357c9190b85576fc77bee8a71bb4d05e (diff) | |
download | mongo-147948c7b33d4542a99352dd02ec3cb88f401a7c.tar.gz |
doneAndDecouple() -> obj()
Diffstat (limited to 'dbtests/jsobjtests.cpp')
-rw-r--r-- | dbtests/jsobjtests.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dbtests/jsobjtests.cpp b/dbtests/jsobjtests.cpp index 4433a4b1d97..abcfa3f8047 100644 --- a/dbtests/jsobjtests.cpp +++ b/dbtests/jsobjtests.cpp @@ -37,18 +37,18 @@ namespace JsobjTests { static BSONObj basic( const char *name, int val ) { BSONObjBuilder b; b.appendInt( name, val ); - return b.doneAndDecouple(); + return b.obj(); } static BSONObj basic( const char *name, vector< int > val ) { BSONObjBuilder b; b.appendIntArray( name, val ); - return b.doneAndDecouple(); + return b.obj(); } template< class T > static BSONObj basic( const char *name, T val ) { BSONObjBuilder b; b.append( name, val ); - return b.doneAndDecouple(); + return b.obj(); } }; @@ -314,7 +314,7 @@ namespace JsobjTests { BSONObjBuilder scope; scope.append( "a", "b" ); b.appendCodeWScope( "c", "d", scope.done() ); - return b.doneAndDecouple(); + return b.obj(); } BSONObj invalid() const { BSONObj ret = valid(); |