diff options
author | Andrew Morrow <acm@mongodb.com> | 2015-06-10 18:41:42 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2015-06-10 22:37:55 -0400 |
commit | 1360f243ee7fa662c0ded25a9bc479aa47388446 (patch) | |
tree | 4e612c60d4e45386800e147e5d67366c61284d71 /src/mongo/bson/bson_validate_test.cpp | |
parent | d7d1fdb75966c684e9a42150e6e9b69c4a10ee08 (diff) | |
download | mongo-1360f243ee7fa662c0ded25a9bc479aa47388446.tar.gz |
SERVER-17308 Replace boost::scoped_array<T> with std::unique_ptr<T[]>
Diffstat (limited to 'src/mongo/bson/bson_validate_test.cpp')
-rw-r--r-- | src/mongo/bson/bson_validate_test.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/bson/bson_validate_test.cpp b/src/mongo/bson/bson_validate_test.cpp index 77dfc11e15c..b3965763861 100644 --- a/src/mongo/bson/bson_validate_test.cpp +++ b/src/mongo/bson/bson_validate_test.cpp @@ -27,7 +27,6 @@ #define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault -#include <boost/scoped_array.hpp> #include "mongo/base/data_view.h" #include "mongo/db/jsobj.h" @@ -39,7 +38,7 @@ namespace { using namespace mongo; - using boost::scoped_array; + using std::unique_ptr; using std::endl; void appendInvalidStringElement(const char* fieldName, BufBuilder* bb) { @@ -165,7 +164,7 @@ namespace { int32_t fuzzFrequency = fuzzFrequencies[ i ]; // Copy the 'original' BSONObj to 'buffer'. - scoped_array<char> buffer( new char[ original.objsize() ] ); + unique_ptr<char[]> buffer( new char[ original.objsize() ] ); memcpy( buffer.get(), original.objdata(), original.objsize() ); // Randomly flip bits in 'buffer', with probability determined by 'fuzzFrequency'. The |