summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bsonelement.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2016-05-03 13:57:13 -0400
committerDavid Storch <david.storch@10gen.com>2016-05-04 09:41:58 -0400
commit3e3313409d90026ed5f629e8ffb87b04cca5a524 (patch)
tree89552b979750cb9d5c4abf26472bb9211179eb19 /src/mongo/bson/bsonelement.h
parent8f445bef3ad620018a422e7b08ebff552dd0b825 (diff)
downloadmongo-3e3313409d90026ed5f629e8ffb87b04cca5a524.tar.gz
SERVER-23349 make CollatorInterface methods const
Also changes all uses of CollatorInterface* to pointers-to-const.
Diffstat (limited to 'src/mongo/bson/bsonelement.h')
-rw-r--r--src/mongo/bson/bsonelement.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/bson/bsonelement.h b/src/mongo/bson/bsonelement.h
index b3e8c3caf98..8db2f2f7722 100644
--- a/src/mongo/bson/bsonelement.h
+++ b/src/mongo/bson/bsonelement.h
@@ -60,7 +60,7 @@ typedef BSONObjBuilder bob;
*/
int compareElementValues(const BSONElement& l,
const BSONElement& r,
- StringData::ComparatorInterface* comparator = nullptr);
+ const StringData::ComparatorInterface* comparator = nullptr);
/** BSONElement represents an "element" in a BSONObj. So for the object { a : 3, b : "abc" },
'a : 3' is the first element (key+value).
@@ -494,7 +494,7 @@ public:
*/
int woCompare(const BSONElement& e,
bool considerFieldName = true,
- StringData::ComparatorInterface* comparator = nullptr) const;
+ const StringData::ComparatorInterface* comparator = nullptr) const;
/**
* Functor compatible with std::hash for std::unordered_{map,set}