diff options
Diffstat (limited to 'src/mongo/scripting/engine.cpp')
-rw-r--r-- | src/mongo/scripting/engine.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/scripting/engine.cpp b/src/mongo/scripting/engine.cpp index 153df5d7f6d..e42a3db8186 100644 --- a/src/mongo/scripting/engine.cpp +++ b/src/mongo/scripting/engine.cpp @@ -35,7 +35,6 @@ #include <cctype> #include <boost/filesystem/operations.hpp> -#include <boost/scoped_array.hpp> #include <boost/shared_ptr.hpp> #include "mongo/client/dbclientcursor.h" @@ -172,7 +171,7 @@ namespace { return false; } unsigned len = static_cast<unsigned>(fo); - boost::scoped_array<char> data (new char[len+1]); + std::unique_ptr<char[]> data (new char[len+1]); data[len] = 0; f.read(0, data.get(), len); |