From b5d6a7c61c1ecdaf9d577ca75942d82363e0552c Mon Sep 17 00:00:00 2001 From: Andreas Nilsson Date: Fri, 8 Jul 2016 11:49:51 -0400 Subject: SERVER-24840 - Remove unnecessary parameters to BSONObj::toString --- src/mongo/bson/bsonobj.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mongo/bson/bsonobj.cpp') 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 { -- cgit v1.2.1