summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Lerner <alerner@10gen.com>2010-07-20 12:57:47 -0400
committerAlberto Lerner <alerner@10gen.com>2010-07-20 12:57:47 -0400
commit4b2de232c9cf5bf0f227d97fe03c39d17a2e849b (patch)
tree7790f898d77d2374af66cf5ec447d2cbe79f3eca
parented0081deed460e5733681af5b12c7729dc464412 (diff)
downloadmongo-4b2de232c9cf5bf0f227d97fe03c39d17a2e849b.tar.gz
SERVER-1270 Elim c_str() /s
-rw-r--r--s/commands_admin.cpp2
-rw-r--r--s/config.cpp2
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() );
}