replace couple copy() calls with getOwned()

This commit is contained in:
Aaron
2009-03-06 13:42:52 -05:00
parent 384864c5b9
commit 8730dc9d02
2 changed files with 2 additions and 2 deletions

View File

@@ -112,7 +112,7 @@ namespace mongo {
FieldBoundSet::FieldBoundSet( const char *ns, const BSONObj &query ) :
ns_( ns ),
query_( query.copy() ) {
query_( query.getOwned() ) {
BSONObjIterator i( query_ );
while( i.more() ) {
BSONElement e = i.next();