[WinCairo] Fix build after r206196
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Sep 2016 18:43:40 +0000 (18:43 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Sep 2016 18:43:40 +0000 (18:43 +0000)
Patch by Don Olmstead <don.olmstead@am.sony.com> on 2016-09-22
Reviewed by Alex Christensen.

* platform/text/win/LocaleWin.cpp:
(WebCore::LocaleWin::getLocaleInfoString):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@206265 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/text/win/LocaleWin.cpp

index a23208d..ee2bba4 100644 (file)
@@ -1,3 +1,12 @@
+2016-09-22  Don Olmstead  <don.olmstead@am.sony.com>
+
+        [WinCairo] Fix build after r206196
+
+        Reviewed by Alex Christensen.
+
+        * platform/text/win/LocaleWin.cpp:
+        (WebCore::LocaleWin::getLocaleInfoString):
+
 2016-09-22  Jonathan Bedard  <jbedard@apple.com>
 
         Automatic Text Replacement Testing in WebKit2
index 65d1928..99ef0ad 100644 (file)
@@ -101,7 +101,7 @@ String LocaleWin::getLocaleInfoString(LCTYPE type)
     Vector<UChar> buffer(bufferSizeWithNUL);
     ::GetLocaleInfo(m_lcid, type, buffer.data(), bufferSizeWithNUL);
     buffer.shrink(bufferSizeWithNUL - 1);
-    return String::adopt(buffer);
+    return String::adopt(WTFMove(buffer));
 }
 
 void LocaleWin::getLocaleInfo(LCTYPE type, DWORD& result)