diff options
Diffstat (limited to 'src/mongo/db/commands/index_filter_commands_test.cpp')
-rw-r--r-- | src/mongo/db/commands/index_filter_commands_test.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/db/commands/index_filter_commands_test.cpp b/src/mongo/db/commands/index_filter_commands_test.cpp index a1781f2b5bd..baeb4b985a7 100644 --- a/src/mongo/db/commands/index_filter_commands_test.cpp +++ b/src/mongo/db/commands/index_filter_commands_test.cpp @@ -32,7 +32,6 @@ #include "mongo/db/commands/index_filter_commands.h" -#include <boost/scoped_ptr.hpp> #include "mongo/db/json.h" #include "mongo/db/operation_context_noop.h" @@ -44,7 +43,7 @@ using namespace mongo; namespace { - using boost::scoped_ptr; + using std::unique_ptr; using std::unique_ptr; using std::string; using std::vector; @@ -121,7 +120,7 @@ namespace { // Create canonical query. CanonicalQuery* cqRaw; ASSERT_OK(CanonicalQuery::canonicalize(ns, queryObj, sortObj, projectionObj, &cqRaw)); - scoped_ptr<CanonicalQuery> cq(cqRaw); + unique_ptr<CanonicalQuery> cq(cqRaw); QuerySolution qs; qs.cacheData.reset(new SolutionCacheData()); @@ -143,7 +142,7 @@ namespace { // Create canonical query. CanonicalQuery* cqRaw; ASSERT_OK(CanonicalQuery::canonicalize(ns, queryObj, sortObj, projectionObj, &cqRaw)); - scoped_ptr<CanonicalQuery> cq(cqRaw); + unique_ptr<CanonicalQuery> cq(cqRaw); // Retrieve cache entries from plan cache. vector<PlanCacheEntry*> entries = planCache.getAllEntries(); @@ -157,7 +156,7 @@ namespace { // Alternatively, we could add key to PlanCacheEntry but that would be used in one place only. ASSERT_OK(CanonicalQuery::canonicalize(ns, entry->query, entry->sort, entry->projection, &cqRaw)); - scoped_ptr<CanonicalQuery> currentQuery(cqRaw); + unique_ptr<CanonicalQuery> currentQuery(cqRaw); if (planCache.computeKey(*currentQuery) == planCache.computeKey(*cq)) { found = true; |