Skip to content

Commit

Permalink
BONObjBuilder::append( const StringData& fieldName, string str), seco…
Browse files Browse the repository at this point in the history
…nd argument should be passed by const& SERVER-2224
  • Loading branch information
erh committed Dec 15, 2010
1 parent 6be02ac commit 4742db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bsonobjbuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ namespace mongo {
return append(fieldName, str, (int) strlen(str)+1);
}
/** Append a string element */
BSONObjBuilder& append(const StringData& fieldName, string str) {
BSONObjBuilder& append(const StringData& fieldName, const string& str) {
return append(fieldName, str.c_str(), (int) str.size()+1);
}

Expand Down

0 comments on commit 4742db9

Please sign in to comment.