From a9b6612f5322f916298c19a6728817a1034c6aab Mon Sep 17 00:00:00 2001 From: Andrew Morrow Date: Wed, 10 Jun 2015 17:43:13 -0400 Subject: SERVER-17309 Replace std::auto_ptr with std::unique_ptr --- src/mongo/db/query/explain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/query/explain.cpp') diff --git a/src/mongo/db/query/explain.cpp b/src/mongo/db/query/explain.cpp index 7630bbd4c94..e67bb343dfb 100644 --- a/src/mongo/db/query/explain.cpp +++ b/src/mongo/db/query/explain.cpp @@ -49,7 +49,7 @@ namespace { using namespace mongo; using boost::scoped_ptr; - using std::auto_ptr; + using std::unique_ptr; using std::string; using std::vector; @@ -595,7 +595,7 @@ namespace mongo { // Get stats of the winning plan from the trial period, if the verbosity level // is high enough and there was a runoff between multiple plans. - auto_ptr winningStatsTrial; + unique_ptr winningStatsTrial; if (verbosity >= ExplainCommon::EXEC_ALL_PLANS && NULL != mps) { winningStatsTrial.reset(exec->getStats()); invariant(winningStatsTrial.get()); -- cgit v1.2.1