summaryrefslogtreecommitdiff
path: root/src/mongo/client
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-01-04 12:23:38 -0500
committerAndrew Morrow <acm@mongodb.com>2015-01-05 18:52:20 -0500
commite782819da4ce547272c653ec85984cacf5e60ff2 (patch)
tree4ed2ffdbe2c74634ed836cde991a2bdd2c9f7bf9 /src/mongo/client
parent0c4d932be42022627cd1e8a826fc69cd3edac23f (diff)
downloadmongo-e782819da4ce547272c653ec85984cacf5e60ff2.tar.gz
SERVER-13256 Remove scoped_ptr from pch.h
Diffstat (limited to 'src/mongo/client')
-rw-r--r--src/mongo/client/dbclient_rs.h1
-rw-r--r--src/mongo/client/dbclient_rs_test.cpp1
-rw-r--r--src/mongo/client/dbclientinterface.h2
-rw-r--r--src/mongo/client/parallel.h6
-rw-r--r--src/mongo/client/sasl_scramsha1_client_conversation.cpp4
-rw-r--r--src/mongo/client/syncclusterconnection.h3
6 files changed, 14 insertions, 3 deletions
diff --git a/src/mongo/client/dbclient_rs.h b/src/mongo/client/dbclient_rs.h
index 2bf7eb88081..85ee0062410 100644
--- a/src/mongo/client/dbclient_rs.h
+++ b/src/mongo/client/dbclient_rs.h
@@ -29,6 +29,7 @@
#pragma once
+#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <utility>
diff --git a/src/mongo/client/dbclient_rs_test.cpp b/src/mongo/client/dbclient_rs_test.cpp
index 6082d899a31..030ebaaac26 100644
--- a/src/mongo/client/dbclient_rs_test.cpp
+++ b/src/mongo/client/dbclient_rs_test.cpp
@@ -41,6 +41,7 @@
#include "mongo/unittest/unittest.h"
#include "mongo/util/assert_util.h"
+#include <boost/scoped_ptr.hpp>
#include <map>
#include <memory>
#include <string>
diff --git a/src/mongo/client/dbclientinterface.h b/src/mongo/client/dbclientinterface.h
index 959992068fc..645974b37a1 100644
--- a/src/mongo/client/dbclientinterface.h
+++ b/src/mongo/client/dbclientinterface.h
@@ -32,6 +32,8 @@
#pragma once
+#include <boost/scoped_ptr.hpp>
+
#include "mongo/base/string_data.h"
#include "mongo/bson/bson_field.h"
#include "mongo/client/export_macros.h"
diff --git a/src/mongo/client/parallel.h b/src/mongo/client/parallel.h
index a6fc2367d66..85ef519ca55 100644
--- a/src/mongo/client/parallel.h
+++ b/src/mongo/client/parallel.h
@@ -33,6 +33,8 @@
#pragma once
+#include <boost/scoped_ptr.hpp>
+
#include "mongo/client/export_macros.h"
#include "mongo/db/dbmessage.h"
#include "mongo/db/matcher/matcher.h"
@@ -376,10 +378,10 @@ namespace mongo {
int _options;
BSONObj _cmd;
DBClientBase * _conn;
- scoped_ptr<AScopedConnection> _connHolder; // used if not provided a connection
+ boost::scoped_ptr<AScopedConnection> _connHolder; // used if not provided a connection
bool _useShardConn;
- scoped_ptr<DBClientCursor> _cursor;
+ boost::scoped_ptr<DBClientCursor> _cursor;
BSONObj _res;
bool _ok;
diff --git a/src/mongo/client/sasl_scramsha1_client_conversation.cpp b/src/mongo/client/sasl_scramsha1_client_conversation.cpp
index c84de2bd2a7..436d069d531 100644
--- a/src/mongo/client/sasl_scramsha1_client_conversation.cpp
+++ b/src/mongo/client/sasl_scramsha1_client_conversation.cpp
@@ -31,6 +31,7 @@
#include "mongo/client/sasl_scramsha1_client_conversation.h"
#include <boost/algorithm/string/replace.hpp>
+#include <boost/scoped_ptr.hpp>
#include "mongo/base/parse_number.h"
#include "mongo/client/sasl_client_session.h"
@@ -41,6 +42,9 @@
#include "mongo/util/text.h"
namespace mongo {
+
+ using boost::scoped_ptr;
+
SaslSCRAMSHA1ClientConversation::SaslSCRAMSHA1ClientConversation(
SaslClientSession* saslClientSession) :
SaslClientConversation(saslClientSession),
diff --git a/src/mongo/client/syncclusterconnection.h b/src/mongo/client/syncclusterconnection.h
index 92c79f50232..9a1537ea773 100644
--- a/src/mongo/client/syncclusterconnection.h
+++ b/src/mongo/client/syncclusterconnection.h
@@ -30,6 +30,7 @@
#pragma once
+#include <boost/scoped_ptr.hpp>
#include "mongo/bson/bsonelement.h"
#include "mongo/bson/bsonobj.h"
@@ -157,7 +158,7 @@ namespace mongo {
std::vector<BSONObj> _lastErrors;
// Optionally attached by user
- scoped_ptr<QueryHandler> _customQueryHandler;
+ boost::scoped_ptr<QueryHandler> _customQueryHandler;
mongo::mutex _mutex;
map<string,int> _lockTypes;