summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/value.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/value.cpp')
-rw-r--r--src/mongo/db/pipeline/value.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/value.cpp b/src/mongo/db/pipeline/value.cpp
index c949601ac4d..833d7ac23de 100644
--- a/src/mongo/db/pipeline/value.cpp
+++ b/src/mongo/db/pipeline/value.cpp
@@ -32,7 +32,6 @@
#include <cmath>
#include <boost/functional/hash.hpp>
-#include <boost/scoped_array.hpp>
#include "mongo/base/compare_numbers.h"
#include "mongo/db/jsobj.h"
@@ -124,7 +123,7 @@ namespace mongo {
const size_t totalLen = patternLen + 1/*middle NUL*/ + flagsLen;
// Need to copy since putString doesn't support scatter-gather.
- boost::scoped_array<char> buf (new char[totalLen]);
+ std::unique_ptr<char[]> buf (new char[totalLen]);
re.pattern.copyTo(buf.get(), true);
re.flags.copyTo(buf.get() + patternLen + 1, false); // no NUL
putString(StringData(buf.get(), totalLen));