summaryrefslogtreecommitdiff
path: root/src/mongo/util/text.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-06-10 18:41:42 -0400
committerAndrew Morrow <acm@mongodb.com>2015-06-10 22:37:55 -0400
commit1360f243ee7fa662c0ded25a9bc479aa47388446 (patch)
tree4e612c60d4e45386800e147e5d67366c61284d71 /src/mongo/util/text.cpp
parentd7d1fdb75966c684e9a42150e6e9b69c4a10ee08 (diff)
downloadmongo-1360f243ee7fa662c0ded25a9bc479aa47388446.tar.gz
SERVER-17308 Replace boost::scoped_array<T> with std::unique_ptr<T[]>
Diffstat (limited to 'src/mongo/util/text.cpp')
-rw-r--r--src/mongo/util/text.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/util/text.cpp b/src/mongo/util/text.cpp
index 3b0e7ee7d6f..264c9a0e771 100644
--- a/src/mongo/util/text.cpp
+++ b/src/mongo/util/text.cpp
@@ -30,7 +30,6 @@
#include "mongo/util/text.h"
#include <boost/integer_traits.hpp>
-#include <boost/smart_ptr/scoped_array.hpp>
#include <errno.h>
#include <iostream>
#include <sstream>
@@ -209,7 +208,7 @@ namespace mongo {
if ( bufferSize == 0 ) {
return std::wstring();
}
- boost::scoped_array< wchar_t > tempBuffer( new wchar_t[ bufferSize ] );
+ std::unique_ptr< wchar_t []> tempBuffer( new wchar_t[ bufferSize ] );
tempBuffer[0] = 0;
MultiByteToWideChar(
CP_UTF8, // Code page
@@ -241,7 +240,7 @@ namespace mongo {
if ( bufferSize == 0 ) {
return true;
}
- boost::scoped_array<wchar_t> utf16String( new wchar_t[ bufferSize ] );
+ std::unique_ptr<wchar_t[]> utf16String( new wchar_t[ bufferSize ] );
MultiByteToWideChar(
CP_UTF8, // Code page
0, // Flags