diff options
Diffstat (limited to 'src/mongo/bson/bsonobj.h')
-rw-r--r-- | src/mongo/bson/bsonobj.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/bson/bsonobj.h b/src/mongo/bson/bsonobj.h index fa39b2d9220..9333670339b 100644 --- a/src/mongo/bson/bsonobj.h +++ b/src/mongo/bson/bsonobj.h @@ -404,7 +404,7 @@ public: int woCompare(const BSONObj& r, const Ordering& o, bool considerFieldName = true, - StringData::ComparatorInterface* comparator = nullptr) const; + const StringData::ComparatorInterface* comparator = nullptr) const; /**wo='well ordered'. fields must be in same order in each object. Ordering is with respect to the signs of the elements @@ -415,7 +415,7 @@ public: int woCompare(const BSONObj& r, const BSONObj& ordering = BSONObj(), bool considerFieldName = true, - StringData::ComparatorInterface* comparator = nullptr) const; + const StringData::ComparatorInterface* comparator = nullptr) const; bool operator<(const BSONObj& other) const { return woCompare(other) < 0; |