Title: [169251] trunk/Source/WebKit2
Revision
169251
Author
[email protected]
Date
2014-05-22 23:44:19 -0700 (Thu, 22 May 2014)

Log Message

Have the decoded element in VectorArgumentCoder::decode() moved into Vector::append()
https://bugs.webkit.org/show_bug.cgi?id=133082

Reviewed by Andreas Kling.

* Platform/IPC/ArgumentCoders.h: Move the decoded element into the Vector::append() call.
This enforces a move instead of a copy if the decoded element's type is move-constructible.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (169250 => 169251)


--- trunk/Source/WebKit2/ChangeLog	2014-05-23 06:43:05 UTC (rev 169250)
+++ trunk/Source/WebKit2/ChangeLog	2014-05-23 06:44:19 UTC (rev 169251)
@@ -1,5 +1,15 @@
 2014-05-22  Zan Dobersek  <[email protected]>
 
+        Have the decoded element in VectorArgumentCoder::decode() moved into Vector::append()
+        https://bugs.webkit.org/show_bug.cgi?id=133082
+
+        Reviewed by Andreas Kling.
+
+        * Platform/IPC/ArgumentCoders.h: Move the decoded element into the Vector::append() call.
+        This enforces a move instead of a copy if the decoded element's type is move-constructible.
+
+2014-05-22  Zan Dobersek  <[email protected]>
+
         Move the passed-in Vector<Attachment> in MessageDecoder constructor down into ArgumentDecoder
         https://bugs.webkit.org/show_bug.cgi?id=133080
 

Modified: trunk/Source/WebKit2/Platform/IPC/ArgumentCoders.h (169250 => 169251)


--- trunk/Source/WebKit2/Platform/IPC/ArgumentCoders.h	2014-05-23 06:43:05 UTC (rev 169250)
+++ trunk/Source/WebKit2/Platform/IPC/ArgumentCoders.h	2014-05-23 06:44:19 UTC (rev 169251)
@@ -115,7 +115,7 @@
             if (!decoder.decode(element))
                 return false;
             
-            tmp.append(element);
+            tmp.append(std::move(element));
         }
 
         tmp.shrinkToFit();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to