Unreviewed, fix -Wredundant-move warning spam after r247672
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 25 Jul 2019 16:07:09 +0000 (16:07 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 25 Jul 2019 16:07:09 +0000 (16:07 +0000)
https://bugs.webkit.org/show_bug.cgi?id=199967
<rdar://problem/53351435>

* Platform/IPC/ArgumentCoders.cpp:
(IPC::decodeStringText):
* Platform/IPC/ArgumentCoders.h:

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

Source/WebKit/ChangeLog
Source/WebKit/Platform/IPC/ArgumentCoders.cpp
Source/WebKit/Platform/IPC/ArgumentCoders.h

index d1dfd5e..965e27e 100644 (file)
@@ -1,3 +1,13 @@
+2019-07-25  Michael Catanzaro  <mcatanzaro@igalia.com>
+
+        Unreviewed, fix -Wredundant-move warning spam after r247672
+        https://bugs.webkit.org/show_bug.cgi?id=199967
+        <rdar://problem/53351435>
+
+        * Platform/IPC/ArgumentCoders.cpp:
+        (IPC::decodeStringText):
+        * Platform/IPC/ArgumentCoders.h:
+
 2019-07-25  Chris Dumez  <cdumez@apple.com>
 
         Avoid UI Process hangs when the WebContent process is showing JS prompts / alerts
index 35b9130..5907e62 100644 (file)
@@ -145,7 +145,7 @@ static inline Optional<String> decodeStringText(Decoder& decoder, uint32_t lengt
     if (!decoder.decodeFixedLengthData(reinterpret_cast<uint8_t*>(buffer), length * sizeof(CharacterType), alignof(CharacterType)))
         return WTF::nullopt;
     
-    return WTFMove(string);
+    return string;
 }
 
 Optional<String> ArgumentCoder<String>::decode(Decoder& decoder)
index 2cd6096..2a809c7 100644 (file)
@@ -397,7 +397,7 @@ template<typename KeyArg, typename MappedArg, typename HashArg, typename KeyTrai
             }
         }
 
-        return WTFMove(hashMap);
+        return hashMap;
     }
 
     static bool decode(Decoder& decoder, HashMapType& hashMap)