Permalink
Browse files

SERVER-7886 - StringData for bson api

  • Loading branch information...
1 parent b92fcdf commit 4002de8b2265cffe10cce8e7a70e756ad0f01c49 @erh erh committed Dec 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mongo/db/pipeline/value.cpp
View
2 src/mongo/db/pipeline/value.cpp
@@ -306,7 +306,7 @@ namespace mongo {
}
void Value::addToBsonObj(BSONObjBuilder* pBuilder, StringData fieldName) const {
- *pBuilder << fieldName.__data() << *this;
+ *pBuilder << fieldName << *this;
}
void Value::addToBsonArray(BSONArrayBuilder* pBuilder) const {

0 comments on commit 4002de8

Please sign in to comment.