summaryrefslogtreecommitdiff
path: root/src/mongo/bson/mutable/element.h
diff options
context:
space:
mode:
authorDavid Hatch <david.hatch@mongodb.com>2016-07-21 13:27:49 -0400
committerDavid Hatch <david.hatch@mongodb.com>2016-07-22 16:21:19 -0400
commit4e1dacf63d435c91b8ae33c2982d13b3ca87a6d9 (patch)
tree99d70764b310e66df4e9e9d441f96fd1d8c218e0 /src/mongo/bson/mutable/element.h
parentf7c13e7396803e56ea46fe2d4418dbcf59b9eb57 (diff)
downloadmongo-4e1dacf63d435c91b8ae33c2982d13b3ca87a6d9.tar.gz
SERVER-24873 Remove StringData::ComparatorInterface default argument.
Diffstat (limited to 'src/mongo/bson/mutable/element.h')
-rw-r--r--src/mongo/bson/mutable/element.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/bson/mutable/element.h b/src/mongo/bson/mutable/element.h
index 690894b285d..270d990e1ac 100644
--- a/src/mongo/bson/mutable/element.h
+++ b/src/mongo/bson/mutable/element.h
@@ -351,8 +351,8 @@ public:
* Returns 1 if this > other according to BSONElement::woCompare
*/
int compareWithElement(const ConstElement& other,
- bool considerFieldName = true,
- const StringData::ComparatorInterface* comparator = nullptr) const;
+ const StringData::ComparatorInterface* comparator,
+ bool considerFieldName = true) const;
/** Compare this Element with BSONElement 'other'. You should not call this on the root
* Element of the Document because the root Element does not have a field name. Use
@@ -363,8 +363,8 @@ public:
* Returns 1 if this > other according to BSONElement::woCompare
*/
int compareWithBSONElement(const BSONElement& other,
- bool considerFieldName = true,
- const StringData::ComparatorInterface* comparator = nullptr) const;
+ const StringData::ComparatorInterface* comparator,
+ bool considerFieldName = true) const;
/** Compare this Element, which must be an Object or an Array, with 'other'.
*
@@ -373,8 +373,8 @@ public:
* Returns 1 if this object > other according to BSONElement::woCompare
*/
int compareWithBSONObj(const BSONObj& other,
- bool considerFieldName = true,
- const StringData::ComparatorInterface* comparator = nullptr) const;
+ const StringData::ComparatorInterface* comparator,
+ bool considerFieldName = true) const;
//