diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-06-10 01:21:01 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-06-10 01:59:35 -0400 |
commit | c36f9ecb91e49da7e637863889804fc4e6c6c05e (patch) | |
tree | 64d8aadb6d29042d4f4e7366bc1457e4e0612383 /src/mongo/dbtests/query_stage_sort_key_generator.cpp | |
parent | c9548e729c8fecd9d7a9a5dd341da0433194ac73 (diff) | |
download | mongo-c36f9ecb91e49da7e637863889804fc4e6c6c05e.tar.gz |
SERVER-39339 Remove `stdx/memory.h`
Diffstat (limited to 'src/mongo/dbtests/query_stage_sort_key_generator.cpp')
-rw-r--r-- | src/mongo/dbtests/query_stage_sort_key_generator.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/dbtests/query_stage_sort_key_generator.cpp b/src/mongo/dbtests/query_stage_sort_key_generator.cpp index 7d73f858953..adc2bb2db50 100644 --- a/src/mongo/dbtests/query_stage_sort_key_generator.cpp +++ b/src/mongo/dbtests/query_stage_sort_key_generator.cpp @@ -29,13 +29,14 @@ #include "mongo/platform/basic.h" +#include <memory> + #include "mongo/db/exec/queued_data_stage.h" #include "mongo/db/exec/sort_key_generator.h" #include "mongo/db/exec/working_set_computed_data.h" #include "mongo/db/json.h" #include "mongo/db/query/collation/collator_interface_mock.h" #include "mongo/db/query/query_test_service_context.h" -#include "mongo/stdx/memory.h" #include "mongo/unittest/unittest.h" namespace mongo { @@ -70,7 +71,7 @@ BSONObj extractSortKey(const char* sortSpec, const char* doc, const CollatorInte WorkingSet workingSet; - auto mockStage = stdx::make_unique<QueuedDataStage>(opCtx.get(), &workingSet); + auto mockStage = std::make_unique<QueuedDataStage>(opCtx.get(), &workingSet); auto wsid = workingSet.allocate(); auto wsm = workingSet.get(wsid); wsm->obj = Snapshotted<BSONObj>(SnapshotId(), fromjson(doc)); @@ -98,7 +99,7 @@ BSONObj extractSortKeyCovered(const char* sortSpec, WorkingSet workingSet; - auto mockStage = stdx::make_unique<QueuedDataStage>(opCtx.get(), &workingSet); + auto mockStage = std::make_unique<QueuedDataStage>(opCtx.get(), &workingSet); auto wsid = workingSet.allocate(); auto wsm = workingSet.get(wsid); wsm->keyData.push_back(ikd); |