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/logger/rotatable_file_writer.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/logger/rotatable_file_writer.cpp')
-rw-r--r-- | src/mongo/logger/rotatable_file_writer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/logger/rotatable_file_writer.cpp b/src/mongo/logger/rotatable_file_writer.cpp index f657f42c18d..f97e3a72958 100644 --- a/src/mongo/logger/rotatable_file_writer.cpp +++ b/src/mongo/logger/rotatable_file_writer.cpp @@ -30,7 +30,6 @@ #include "mongo/logger/rotatable_file_writer.h" #include <boost/filesystem/operations.hpp> -#include <boost/scoped_array.hpp> #include <cstdio> #include <fstream> @@ -61,7 +60,7 @@ namespace { // A Windows wchar_t encoding of a unicode codepoint never takes more instances of wchar_t // than the UTF-8 encoding takes instances of char. - boost::scoped_array<wchar_t> tempBuffer(new wchar_t[utf8Str.size()]); + std::unique_ptr<wchar_t[]> tempBuffer(new wchar_t[utf8Str.size()]); tempBuffer[0] = L'\0'; int finalSize = MultiByteToWideChar( CP_UTF8, // Code page |