summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/projection_exec_test.cpp
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/db/exec/projection_exec_test.cpp
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/db/exec/projection_exec_test.cpp')
-rw-r--r--src/mongo/db/exec/projection_exec_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/exec/projection_exec_test.cpp b/src/mongo/db/exec/projection_exec_test.cpp
index d0df0e2ee5a..4c9689f544e 100644
--- a/src/mongo/db/exec/projection_exec_test.cpp
+++ b/src/mongo/db/exec/projection_exec_test.cpp
@@ -50,7 +50,7 @@ using std::unique_ptr;
* Utility function to create MatchExpression
*/
unique_ptr<MatchExpression> parseMatchExpression(const BSONObj& obj) {
- CollatorInterface* collator = nullptr;
+ const CollatorInterface* collator = nullptr;
StatusWithMatchExpression status =
MatchExpressionParser::parse(obj, ExtensionsCallbackDisallowExtensions(), collator);
ASSERT_TRUE(status.isOK());
@@ -78,7 +78,7 @@ void testTransform(const char* specStr,
const char* queryStr,
const char* objStr,
WorkingSetComputedData* data,
- CollatorInterface* collator,
+ const CollatorInterface* collator,
bool expectedStatusOK,
const char* expectedObjStr) {
// Create projection exec object.