summaryrefslogtreecommitdiff
path: root/src/mongo/db/hasher.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-06-10 18:08:48 -0400
committerAndrew Morrow <acm@mongodb.com>2015-06-10 22:37:49 -0400
commitd7d1fdb75966c684e9a42150e6e9b69c4a10ee08 (patch)
treed28b0767cbd8c1a09535f1676152e7ac57e829ce /src/mongo/db/hasher.cpp
parenta9b6612f5322f916298c19a6728817a1034c6aab (diff)
downloadmongo-d7d1fdb75966c684e9a42150e6e9b69c4a10ee08.tar.gz
SERVER-17308 Replace boost::scoped_ptr<T> with std::unique_ptr<T>
Diffstat (limited to 'src/mongo/db/hasher.cpp')
-rw-r--r--src/mongo/db/hasher.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/hasher.cpp b/src/mongo/db/hasher.cpp
index 8acb2269459..3ae131a7dee 100644
--- a/src/mongo/db/hasher.cpp
+++ b/src/mongo/db/hasher.cpp
@@ -34,14 +34,13 @@
#include "mongo/db/hasher.h"
-#include <boost/scoped_ptr.hpp>
#include "mongo/db/jsobj.h"
#include "mongo/util/startup_test.h"
namespace mongo {
- using boost::scoped_ptr;
+ using std::unique_ptr;
Hasher::Hasher( HashSeed seed ) : _seed( seed ) {
md5_init( &_md5State );
@@ -57,7 +56,7 @@ namespace mongo {
}
long long int BSONElementHasher::hash64( const BSONElement& e , HashSeed seed ){
- scoped_ptr<Hasher> h( HasherFactory::createHasher( seed ) );
+ unique_ptr<Hasher> h( HasherFactory::createHasher( seed ) );
recursiveHash( h.get() , e , false );
HashDigest d;
h->finish(d);