diff options
Diffstat (limited to 'src/mongo/s/client/scc_fast_query_handler.cpp')
-rw-r--r-- | src/mongo/s/client/scc_fast_query_handler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/s/client/scc_fast_query_handler.cpp b/src/mongo/s/client/scc_fast_query_handler.cpp index 70894893f18..f09dd767a21 100644 --- a/src/mongo/s/client/scc_fast_query_handler.cpp +++ b/src/mongo/s/client/scc_fast_query_handler.cpp @@ -45,7 +45,7 @@ namespace mongo { - using std::auto_ptr; + using std::unique_ptr; using std::endl; using std::string; using std::vector; @@ -94,7 +94,7 @@ namespace mongo { // operation must then be correctly discarded by the calling thread. // - auto_ptr<DBClientCursor> cursor; + unique_ptr<DBClientCursor> cursor; try { @@ -225,7 +225,7 @@ namespace mongo { return hosts; } - auto_ptr<DBClientCursor> SCCFastQueryHandler::handleQuery(const vector<string>& hostStrings, + unique_ptr<DBClientCursor> SCCFastQueryHandler::handleQuery(const vector<string>& hostStrings, const string& ns, Query query, int nToReturn, @@ -250,7 +250,7 @@ namespace mongo { 30 * 1000); uassertStatusOK(status.getStatus()); - auto_ptr<DBClientCursor> cursor(status.getValue()); + unique_ptr<DBClientCursor> cursor(status.getValue()); return cursor; } |