diff options
Diffstat (limited to 'src/mongo/bson/bsonobj.cpp')
-rw-r--r-- | src/mongo/bson/bsonobj.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/bson/bsonobj.cpp b/src/mongo/bson/bsonobj.cpp index 8274ab5ccd9..5c19d28a3c3 100644 --- a/src/mongo/bson/bsonobj.cpp +++ b/src/mongo/bson/bsonobj.cpp @@ -121,7 +121,7 @@ bool BSONObj::valid() const { int BSONObj::woCompare(const BSONObj& r, const Ordering& o, bool considerFieldName, - StringData::ComparatorInterface* comparator) const { + const StringData::ComparatorInterface* comparator) const { if (isEmpty()) return r.isEmpty() ? 0 : -1; if (r.isEmpty()) @@ -157,7 +157,7 @@ int BSONObj::woCompare(const BSONObj& r, int BSONObj::woCompare(const BSONObj& r, const BSONObj& idxKey, bool considerFieldName, - StringData::ComparatorInterface* comparator) const { + const StringData::ComparatorInterface* comparator) const { if (isEmpty()) return r.isEmpty() ? 0 : -1; if (r.isEmpty()) |