Title: [194527] trunk/Source/WebCore
Revision
194527
Author
mcatanz...@igalia.com
Date
2016-01-03 21:20:20 -0800 (Sun, 03 Jan 2016)

Log Message

[GTK] Fix -Wpessimizing-move warnings after switch to WTFMove
https://bugs.webkit.org/show_bug.cgi?id=152677

Reviewed by Andy Estes.

* platform/glib/KeyedDecoderGlib.cpp:
(WebCore::KeyedDecoderGlib::dictionaryFromGVariant):
* platform/graphics/egl/GLContextEGL.cpp:
(WebCore::GLContextEGL::createContext):
* platform/graphics/glx/GLContextGLX.cpp:
(WebCore::GLContextGLX::createContext):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (194526 => 194527)


--- trunk/Source/WebCore/ChangeLog	2016-01-04 03:48:49 UTC (rev 194526)
+++ trunk/Source/WebCore/ChangeLog	2016-01-04 05:20:20 UTC (rev 194527)
@@ -1,3 +1,17 @@
+2016-01-03  Michael Catanzaro  <mcatanz...@igalia.com>
+
+        [GTK] Fix -Wpessimizing-move warnings after switch to WTFMove
+        https://bugs.webkit.org/show_bug.cgi?id=152677
+
+        Reviewed by Andy Estes.
+
+        * platform/glib/KeyedDecoderGlib.cpp:
+        (WebCore::KeyedDecoderGlib::dictionaryFromGVariant):
+        * platform/graphics/egl/GLContextEGL.cpp:
+        (WebCore::GLContextEGL::createContext):
+        * platform/graphics/glx/GLContextGLX.cpp:
+        (WebCore::GLContextGLX::createContext):
+
 2016-01-03  David Kilzer  <ddkil...@apple.com>
 
         -[WebCoreResourceHandleAsOperationQueueDelegate connection:didReceiveResponse:] is missing an m_handle->client() NULL check

Modified: trunk/Source/WebCore/platform/glib/KeyedDecoderGlib.cpp (194526 => 194527)


--- trunk/Source/WebCore/platform/glib/KeyedDecoderGlib.cpp	2016-01-04 03:48:49 UTC (rev 194526)
+++ trunk/Source/WebCore/platform/glib/KeyedDecoderGlib.cpp	2016-01-04 05:20:20 UTC (rev 194527)
@@ -58,7 +58,7 @@
     GVariant* value;
     while (g_variant_iter_loop(&iter, "{&sv}", &key, &value))
         dictionary.set(String::fromUTF8(key), value);
-    return WTFMove(dictionary);
+    return dictionary;
 }
 
 bool KeyedDecoderGlib::decodeBytes(const String& key, const uint8_t*& bytes, size_t& size)

Modified: trunk/Source/WebCore/platform/graphics/egl/GLContextEGL.cpp (194526 => 194527)


--- trunk/Source/WebCore/platform/graphics/egl/GLContextEGL.cpp	2016-01-04 03:48:49 UTC (rev 194526)
+++ trunk/Source/WebCore/platform/graphics/egl/GLContextEGL.cpp	2016-01-04 05:20:20 UTC (rev 194527)
@@ -209,7 +209,7 @@
     if (!context)
         context = createPbufferContext(eglSharingContext);
 
-    return WTFMove(context);
+    return context;
 }
 
 GLContextEGL::GLContextEGL(EGLContext context, EGLSurface surface, EGLSurfaceType type)

Modified: trunk/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp (194526 => 194527)


--- trunk/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp	2016-01-04 03:48:49 UTC (rev 194526)
+++ trunk/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp	2016-01-04 05:20:20 UTC (rev 194527)
@@ -136,7 +136,7 @@
     if (!context)
         return nullptr;
 
-    return WTFMove(context);
+    return context;
 }
 
 GLContextGLX::GLContextGLX(XUniqueGLXContext&& context, XID window)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to