diff options
Diffstat (limited to 'src/mongo/s/catalog/legacy/cluster_client_internal.cpp')
-rw-r--r-- | src/mongo/s/catalog/legacy/cluster_client_internal.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/catalog/legacy/cluster_client_internal.cpp b/src/mongo/s/catalog/legacy/cluster_client_internal.cpp index ce698c1b6f1..3ad791e13ce 100644 --- a/src/mongo/s/catalog/legacy/cluster_client_internal.cpp +++ b/src/mongo/s/catalog/legacy/cluster_client_internal.cpp @@ -46,7 +46,7 @@ namespace mongo { using boost::scoped_ptr; - using std::auto_ptr; + using std::unique_ptr; using std::endl; using std::string; using std::vector; @@ -223,7 +223,7 @@ namespace mongo { } // Helper function for safe cursors - DBClientCursor* _safeCursor(auto_ptr<DBClientCursor> cursor) { + DBClientCursor* _safeCursor(unique_ptr<DBClientCursor> cursor) { // TODO: Make error handling more consistent, it's annoying that cursors error out by // throwing exceptions *and* being empty uassert(16625, str::stream() << "cursor not found, transport error", cursor.get()); |