replace couple copy() calls with getOwned()
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user