summaryrefslogtreecommitdiff
path: root/src/mongo/shell/linenoise_utf8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell/linenoise_utf8.cpp')
-rw-r--r--src/mongo/shell/linenoise_utf8.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/linenoise_utf8.cpp b/src/mongo/shell/linenoise_utf8.cpp
index f5c69708bb8..986e87259f6 100644
--- a/src/mongo/shell/linenoise_utf8.cpp
+++ b/src/mongo/shell/linenoise_utf8.cpp
@@ -336,7 +336,7 @@ int strncmp32( UChar32* first32, UChar32* second32, size_t length ) {
*/
int write32( int fileHandle, const UChar32* string32, unsigned int sourceLengthInCharacters ) {
size_t tempBufferBytes = 4 * sourceLengthInCharacters + 1;
- boost::scoped_array<char> tempCharString( new char[ tempBufferBytes ] );
+ std::unique_ptr<char[]> tempCharString( new char[ tempBufferBytes ] );
size_t count = copyString32to8counted( reinterpret_cast<UChar8*>( tempCharString.get() ),
string32,
tempBufferBytes,