diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-06-19 10:57:36 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-06-20 10:56:04 -0400 |
commit | 6f6fa5a63d482b0dc117eb2ac21cf096deb5a6f3 (patch) | |
tree | b76c2a4dfc7f45eb25dd62cb3ffe89ea448d9e0e /src/mongo/bson/bsonobjbuilder.h | |
parent | 9c2ed42daa8fbbef4a919c21ec564e2db55e8d60 (diff) | |
download | mongo-6f6fa5a63d482b0dc117eb2ac21cf096deb5a6f3.tar.gz |
SERVER-18978: Clang-Format - Fix comment word wrapping indentation
Diffstat (limited to 'src/mongo/bson/bsonobjbuilder.h')
-rw-r--r-- | src/mongo/bson/bsonobjbuilder.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mongo/bson/bsonobjbuilder.h b/src/mongo/bson/bsonobjbuilder.h index 76ed3f60ec8..87c9f3f876a 100644 --- a/src/mongo/bson/bsonobjbuilder.h +++ b/src/mongo/bson/bsonobjbuilder.h @@ -78,7 +78,8 @@ public: } /** @param baseBuilder construct a BSONObjBuilder using an existing BufBuilder - * This is for more efficient adding of subobjects/arrays. See docs for subobjStart for example. + * This is for more efficient adding of subobjects/arrays. See docs for subobjStart for + * example. */ BSONObjBuilder(BufBuilder& baseBuilder) : _b(baseBuilder), @@ -129,16 +130,16 @@ public: /** append element to the object we are building */ BSONObjBuilder& append(const BSONElement& e) { - verify( - !e.eoo()); // do not append eoo, that would corrupt us. the builder auto appends when done() is called. + // do not append eoo, that would corrupt us. the builder auto appends when done() is called. + verify(!e.eoo()); _b.appendBuf((void*)e.rawdata(), e.size()); return *this; } /** append an element but with a new name */ BSONObjBuilder& appendAs(const BSONElement& e, StringData fieldName) { - verify( - !e.eoo()); // do not append eoo, that would corrupt us. the builder auto appends when done() is called. + // do not append eoo, that would corrupt us. the builder auto appends when done() is called. + verify(!e.eoo()); _b.appendNum((char)e.type()); _b.appendStr(fieldName); _b.appendBuf((void*)e.value(), e.valuesize()); @@ -677,7 +678,8 @@ public: return false; } - /** @return true if we are using our own bufbuilder, and not an alternate that was given to us in our constructor */ + /** @return true if we are using our own bufbuilder, and not an alternate that was given to us + * in our constructor */ bool owned() const { return &_b == &_buf; } |