SERVER-1270 Elim c_str() /db

This commit is contained in:
Alberto Lerner
2010-07-20 12:39:35 -04:00
parent 67710484c1
commit 2b14da5f10
4 changed files with 6 additions and 6 deletions

View File

@@ -888,7 +888,7 @@ namespace mongo {
case Array:{
BSONObjBuilder subb;
appendArray(subb , e.embeddedObject(), true);
b.appendArray(b.numStr(i++).c_str(), subb.obj());
b.appendArray(b.numStr(i++), subb.obj());
break;
}
case Object:{
@@ -902,7 +902,7 @@ namespace mongo {
}
default:
if (_include)
b.appendAs(e, b.numStr(i++).c_str());
b.appendAs(e, b.numStr(i++));
}
}
}