diff options
-rw-r--r-- | s/commands_admin.cpp | 2 | ||||
-rw-r--r-- | s/config.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/s/commands_admin.cpp b/s/commands_admin.cpp index fdcc2a45311..eb73a837409 100644 --- a/s/commands_admin.cpp +++ b/s/commands_admin.cpp @@ -957,7 +957,7 @@ namespace mongo { BSONObjBuilder all; for ( unsigned i=0; i<errors.size(); i++ ){ - all.append( all.numStr( i ).c_str() , errors[i].c_str() ); + all.append( all.numStr( i ) , errors[i].c_str() ); } result.appendArray( "errs" , all.obj() ); return true; diff --git a/s/config.cpp b/s/config.cpp index 11d5f0f0c69..84653085f6d 100644 --- a/s/config.cpp +++ b/s/config.cpp @@ -161,7 +161,7 @@ namespace mongo { BSONObjBuilder temp; temp.append( "key" , i->second.key.key() ); temp.appendBool( "unique" , i->second.unique ); - a.append( i->first.c_str() , temp.obj() ); + a.append( i->first , temp.obj() ); } to.append( "sharded" , a.obj() ); } |