summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/engine_v8-3.25.h
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/scripting/engine_v8-3.25.h
parenta9b6612f5322f916298c19a6728817a1034c6aab (diff)
downloadmongo-d7d1fdb75966c684e9a42150e6e9b69c4a10ee08.tar.gz
SERVER-17308 Replace boost::scoped_ptr<T> with std::unique_ptr<T>
Diffstat (limited to 'src/mongo/scripting/engine_v8-3.25.h')
-rw-r--r--src/mongo/scripting/engine_v8-3.25.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/scripting/engine_v8-3.25.h b/src/mongo/scripting/engine_v8-3.25.h
index 70a34f93a5e..b81dfcc40f6 100644
--- a/src/mongo/scripting/engine_v8-3.25.h
+++ b/src/mongo/scripting/engine_v8-3.25.h
@@ -29,7 +29,6 @@
#pragma once
-#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
#include <v8.h>
#include <set>
@@ -126,7 +125,7 @@ namespace mongo {
* @param data Weak callback data. Contains pointer to the TrackedPtr instance.
*/
static void deleteOnCollect(const v8::WeakCallbackData<v8::Value, TrackedPtr>& data) {
- boost::scoped_ptr<TrackedPtr> trackedPtr(data.GetParameter());
+ std::unique_ptr<TrackedPtr> trackedPtr(data.GetParameter());
invariant(trackedPtr.get());
trackedPtr->_tracker->_container.erase(trackedPtr.get());