summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bsonobj.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/bsonobj.cpp')
-rw-r--r--src/mongo/bson/bsonobj.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/bson/bsonobj.cpp b/src/mongo/bson/bsonobj.cpp
index 30b98e08525..b57f6bcf88b 100644
--- a/src/mongo/bson/bsonobj.cpp
+++ b/src/mongo/bson/bsonobj.cpp
@@ -603,11 +603,11 @@ int BSONObj::nFields() const {
return n;
}
-std::string BSONObj::toString(bool isArray, bool full) const {
+std::string BSONObj::toString() const {
if (isEmpty())
- return (isArray ? "[]" : "{}");
+ return "{}";
StringBuilder s;
- toString(s, isArray, full);
+ toString(s, false, false);
return s.str();
}
void BSONObj::toString(StringBuilder& s, bool isArray, bool full, int depth) const {