diff options
Diffstat (limited to 'src/mongo/bson/bsonmisc.h')
-rw-r--r-- | src/mongo/bson/bsonmisc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/bson/bsonmisc.h b/src/mongo/bson/bsonmisc.h index 6baec67d7a6..cfc56a63ef2 100644 --- a/src/mongo/bson/bsonmisc.h +++ b/src/mongo/bson/bsonmisc.h @@ -212,7 +212,7 @@ public: void endField(StringData nextFieldName = StringData()); bool subobjStarted() const { - return _fieldName != 0; + return _fieldName != nullptr; } // The following methods provide API compatibility with BSONArrayBuilder @@ -236,7 +236,7 @@ private: BSONObjBuilder* _builder; bool haveSubobj() const { - return _subobj.get() != 0; + return _subobj.get() != nullptr; } BSONObjBuilder* subobj(); std::unique_ptr<BSONObjBuilder> _subobj; |