summaryrefslogtreecommitdiff
path: root/src/mongo/shell
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell')
-rw-r--r--src/mongo/shell/bench.cpp6
-rw-r--r--src/mongo/shell/dbshell.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/shell/bench.cpp b/src/mongo/shell/bench.cpp
index 9f016a5b65f..b0ecb34c0bb 100644
--- a/src/mongo/shell/bench.cpp
+++ b/src/mongo/shell/bench.cpp
@@ -75,7 +75,7 @@ namespace {
namespace mongo {
- using std::auto_ptr;
+ using std::unique_ptr;
using std::cout;
using std::endl;
using std::map;
@@ -374,7 +374,7 @@ namespace mongo {
BSONObj context = e["context"].eoo() ? BSONObj() : e["context"].Obj();
- auto_ptr<Scope> scope;
+ unique_ptr<Scope> scope;
ScriptingFunction scopeFunc = 0;
BSONObj scopeObj;
@@ -457,7 +457,7 @@ namespace mongo {
BSONObj filter = e["filter"].eoo() ? BSONObj() : e["filter"].Obj();
int expected = e["expected"].eoo() ? -1 : e["expected"].Int();
- auto_ptr<DBClientCursor> cursor;
+ unique_ptr<DBClientCursor> cursor;
int count;
BSONObj fixedQuery = fixQuery(e["query"].Obj(), bsonTemplateEvaluator);
diff --git a/src/mongo/shell/dbshell.cpp b/src/mongo/shell/dbshell.cpp
index ceafa7375b5..d159224057b 100644
--- a/src/mongo/shell/dbshell.cpp
+++ b/src/mongo/shell/dbshell.cpp
@@ -682,7 +682,7 @@ int _main( int argc, char* argv[], char **envp ) {
mongo::ScriptEngine::setConnectCallback( mongo::shell_utils::onConnect );
mongo::ScriptEngine::setup();
mongo::globalScriptEngine->setScopeInitCallback( mongo::shell_utils::initScope );
- auto_ptr< mongo::Scope > scope( mongo::globalScriptEngine->newScope() );
+ unique_ptr< mongo::Scope > scope( mongo::globalScriptEngine->newScope() );
shellMainScope = scope.get();
if( shellGlobalParams.runShell )