[GTK] Fix -Wpessimizing-move warnings after switch to WTFMove
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Jan 2016 05:20:20 +0000 (05:20 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Jan 2016 05:20:20 +0000 (05:20 +0000)
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):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/glib/KeyedDecoderGlib.cpp
Source/WebCore/platform/graphics/egl/GLContextEGL.cpp
Source/WebCore/platform/graphics/glx/GLContextGLX.cpp

index cd109e2..6eb82e5 100644 (file)
@@ -1,3 +1,17 @@
+2016-01-03  Michael Catanzaro  <mcatanzaro@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  <ddkilzer@apple.com>
 
         -[WebCoreResourceHandleAsOperationQueueDelegate connection:didReceiveResponse:] is missing an m_handle->client() NULL check
index 5ba1749..551090e 100644 (file)
@@ -58,7 +58,7 @@ HashMap<String, GRefPtr<GVariant>> KeyedDecoderGlib::dictionaryFromGVariant(GVar
     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)
index 4486132..a2bc75b 100644 (file)
@@ -209,7 +209,7 @@ std::unique_ptr<GLContextEGL> GLContextEGL::createContext(EGLNativeWindowType wi
     if (!context)
         context = createPbufferContext(eglSharingContext);
 
-    return WTFMove(context);
+    return context;
 }
 
 GLContextEGL::GLContextEGL(EGLContext context, EGLSurface surface, EGLSurfaceType type)
index 76c78ab..14bb539 100644 (file)
@@ -136,7 +136,7 @@ std::unique_ptr<GLContextGLX> GLContextGLX::createContext(XID window, GLContext*
     if (!context)
         return nullptr;
 
-    return WTFMove(context);
+    return context;
 }
 
 GLContextGLX::GLContextGLX(XUniqueGLXContext&& context, XID window)