Title: [276813] trunk/Source/WebCore
Revision
276813
Author
[email protected]
Date
2021-04-29 15:34:04 -0700 (Thu, 29 Apr 2021)

Log Message

-Wpessimizing-move warnings in LocaleICU.cpp
https://bugs.webkit.org/show_bug.cgi?id=225205

Patch by Michael Catanzaro <[email protected]> on 2021-04-29
Reviewed by Sam Weinig.

* platform/text/LocaleICU.cpp:
(WebCore::LocaleICU::createLabelVector):
(WebCore::createFallbackMonthLabels):
(WebCore::createFallbackAMPMLabels):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (276812 => 276813)


--- trunk/Source/WebCore/ChangeLog	2021-04-29 22:32:40 UTC (rev 276812)
+++ trunk/Source/WebCore/ChangeLog	2021-04-29 22:34:04 UTC (rev 276813)
@@ -1,3 +1,15 @@
+2021-04-29  Michael Catanzaro  <[email protected]>
+
+        -Wpessimizing-move warnings in LocaleICU.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=225205
+
+        Reviewed by Sam Weinig.
+
+        * platform/text/LocaleICU.cpp:
+        (WebCore::LocaleICU::createLabelVector):
+        (WebCore::createFallbackMonthLabels):
+        (WebCore::createFallbackAMPMLabels):
+
 2021-04-29  Alexey Shvayka  <[email protected]>
 
         [WebIDL] Remove [Reflect] support for constants

Modified: trunk/Source/WebCore/platform/text/LocaleICU.cpp (276812 => 276813)


--- trunk/Source/WebCore/platform/text/LocaleICU.cpp	2021-04-29 22:32:40 UTC (rev 276812)
+++ trunk/Source/WebCore/platform/text/LocaleICU.cpp	2021-04-29 22:34:04 UTC (rev 276813)
@@ -182,7 +182,7 @@
             return makeUnique<Vector<String>>();
         labels->append(String::adopt(WTFMove(buffer)));
     }
-    return WTFMove(labels);
+    return labels;
 }
 
 static std::unique_ptr<Vector<String>> createFallbackMonthLabels()
@@ -191,7 +191,7 @@
     labels->reserveCapacity(WTF_ARRAY_LENGTH(WTF::monthFullName));
     for (unsigned i = 0; i < WTF_ARRAY_LENGTH(WTF::monthFullName); ++i)
         labels->append(WTF::monthFullName[i]);
-    return WTFMove(labels);
+    return labels;
 }
 
 const Vector<String>& LocaleICU::monthLabels()
@@ -213,7 +213,7 @@
     labels->reserveCapacity(2);
     labels->append("AM");
     labels->append("PM");
-    return WTFMove(labels);
+    return labels;
 }
 
 void LocaleICU::initializeDateTimeFormat()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to