| Index: Source/core/platform/text/win/LocaleWin.cpp
|
| diff --git a/Source/core/platform/text/win/LocaleWin.cpp b/Source/core/platform/text/win/LocaleWin.cpp
|
| index 2d565deb261ea8e4234b81a0be55e477cf07b184..cc757a4daf1d85afb98996788a3df04e2e03f877 100644
|
| --- a/Source/core/platform/text/win/LocaleWin.cpp
|
| +++ b/Source/core/platform/text/win/LocaleWin.cpp
|
| @@ -42,6 +42,7 @@
|
| #include "wtf/HashMap.h"
|
| #include "wtf/OwnPtr.h"
|
| #include "wtf/PassOwnPtr.h"
|
| +#include "wtf/text/StringBuffer.h"
|
| #include "wtf/text/StringBuilder.h"
|
| #include "wtf/text/StringHash.h"
|
|
|
| @@ -179,8 +180,8 @@ String LocaleWin::getLocaleInfoString(LCTYPE type)
|
| int bufferSizeWithNUL = ::GetLocaleInfo(m_lcid, type, 0, 0);
|
| if (bufferSizeWithNUL <= 0)
|
| return String();
|
| - Vector<UChar> buffer(bufferSizeWithNUL);
|
| - ::GetLocaleInfo(m_lcid, type, buffer.data(), bufferSizeWithNUL);
|
| + StringBuffer<UChar> buffer(bufferSizeWithNUL);
|
| + ::GetLocaleInfo(m_lcid, type, buffer.characters(), bufferSizeWithNUL);
|
| buffer.shrink(bufferSizeWithNUL - 1);
|
| return String::adopt(buffer);
|
| }
|
|
|