summaryrefslogtreecommitdiff
path: root/src/mongo/util/text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/text.cpp')
-rw-r--r--src/mongo/util/text.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/util/text.cpp b/src/mongo/util/text.cpp
index df084ac1bae..3585adcf9a6 100644
--- a/src/mongo/util/text.cpp
+++ b/src/mongo/util/text.cpp
@@ -184,7 +184,7 @@ std::wstring toWideString(const char* utf8String) {
-1, // Count, -1 for NUL-terminated
NULL, // No output buffer
0 // Zero means "compute required size"
- );
+ );
if (bufferSize == 0) {
return std::wstring();
}
@@ -196,7 +196,7 @@ std::wstring toWideString(const char* utf8String) {
-1, // Count, -1 for NUL-terminated
tempBuffer.get(), // UTF-16 output buffer
bufferSize // Buffer size in wide characters
- );
+ );
return std::wstring(tempBuffer.get());
}
@@ -214,7 +214,7 @@ bool writeUtf8ToWindowsConsole(const char* utf8String, unsigned int utf8StringSi
utf8StringSize, // Input string length
NULL, // No output buffer
0 // Zero means "compute required size"
- );
+ );
if (bufferSize == 0) {
return true;
}
@@ -225,7 +225,7 @@ bool writeUtf8ToWindowsConsole(const char* utf8String, unsigned int utf8StringSi
utf8StringSize, // Input string length
utf16String.get(), // UTF-16 output buffer
bufferSize // Buffer size in wide characters
- );
+ );
const wchar_t* utf16Pointer = utf16String.get();
size_t numberOfCharactersToWrite = bufferSize;
HANDLE consoleHandle = GetStdHandle(STD_OUTPUT_HANDLE);