diff options
author | David Storch <david.storch@10gen.com> | 2016-05-03 13:57:13 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2016-05-04 09:41:58 -0400 |
commit | 3e3313409d90026ed5f629e8ffb87b04cca5a524 (patch) | |
tree | 89552b979750cb9d5c4abf26472bb9211179eb19 /src/mongo/db/index/s2_key_generator_test.cpp | |
parent | 8f445bef3ad620018a422e7b08ebff552dd0b825 (diff) | |
download | mongo-3e3313409d90026ed5f629e8ffb87b04cca5a524.tar.gz |
SERVER-23349 make CollatorInterface methods const
Also changes all uses of CollatorInterface* to pointers-to-const.
Diffstat (limited to 'src/mongo/db/index/s2_key_generator_test.cpp')
-rw-r--r-- | src/mongo/db/index/s2_key_generator_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/index/s2_key_generator_test.cpp b/src/mongo/db/index/s2_key_generator_test.cpp index e13c14c133d..a26a43337e8 100644 --- a/src/mongo/db/index/s2_key_generator_test.cpp +++ b/src/mongo/db/index/s2_key_generator_test.cpp @@ -71,7 +71,7 @@ long long getCellID(int x, int y) { BSONObj keyPattern = fromjson("{a: '2dsphere'}"); BSONObj infoObj = fromjson("{key: {a: '2dsphere'}, '2dsphereIndexVersion': 3}"); S2IndexingParams params; - CollatorInterface* collator = nullptr; + const CollatorInterface* collator = nullptr; ExpressionParams::initialize2dsphereParams(infoObj, collator, ¶ms); BSONObjSet keys; ExpressionKeysPrivate::getS2Keys(obj, keyPattern, params, &keys); @@ -240,7 +240,7 @@ TEST(S2KeyGeneratorTest, NoCollation) { BSONObj keyPattern = fromjson("{a: '2dsphere', b: 1}"); BSONObj infoObj = fromjson("{key: {a: '2dsphere', b: 1}, '2dsphereIndexVersion': 3}"); S2IndexingParams params; - CollatorInterface* collator = nullptr; + const CollatorInterface* collator = nullptr; ExpressionParams::initialize2dsphereParams(infoObj, collator, ¶ms); BSONObjSet actualKeys; ExpressionKeysPrivate::getS2Keys(obj, keyPattern, params, &actualKeys); |