Replace WTF::move with WTFMove
[WebKit-https.git] / Source / JavaScriptCore / inspector / scripts / tests / expected / commands-with-optional-call-return-parameters.json-result
index fb7ab75..e7d6370 100644 (file)
@@ -42,7 +42,7 @@ namespace Inspector {
 
 class AlternateBackendDispatcher {
 public:
-    void setBackendDispatcher(RefPtr<BackendDispatcher>&& dispatcher) { m_backendDispatcher = WTF::move(dispatcher); }
+    void setBackendDispatcher(RefPtr<BackendDispatcher>&& dispatcher) { m_backendDispatcher = WTFMove(dispatcher); }
     BackendDispatcher* backendDispatcher() const { return m_backendDispatcher.get(); }
 private:
     RefPtr<BackendDispatcher> m_backendDispatcher;
@@ -261,9 +261,9 @@ void DatabaseBackendDispatcher::dispatch(long requestId, const String& method, R
     message->getObject(ASCIILiteral("params"), parameters);
 
     if (method == "executeAllOptionalParameters")
-        executeAllOptionalParameters(requestId, WTF::move(parameters));
+        executeAllOptionalParameters(requestId, WTFMove(parameters));
     else if (method == "executeNoOptionalParameters")
-        executeNoOptionalParameters(requestId, WTF::move(parameters));
+        executeNoOptionalParameters(requestId, WTFMove(parameters));
     else
         m_backendDispatcher->reportProtocolError(BackendDispatcher::MethodNotFound, makeString('\'', "Database", '.', method, "' was not found"));
 }
@@ -339,9 +339,9 @@ void DatabaseBackendDispatcher::executeAllOptionalParameters(long requestId, Ref
             result->setString(ASCIILiteral("printColor"), out_printColor.getValue());
     }
     if (!error.length())
-        m_backendDispatcher->sendResponse(requestId, WTF::move(result));
+        m_backendDispatcher->sendResponse(requestId, WTFMove(result));
     else
-        m_backendDispatcher->reportProtocolError(BackendDispatcher::ServerError, WTF::move(error));
+        m_backendDispatcher->reportProtocolError(BackendDispatcher::ServerError, WTFMove(error));
 }
 
 void DatabaseBackendDispatcher::executeNoOptionalParameters(long requestId, RefPtr<InspectorObject>&& parameters)
@@ -395,9 +395,9 @@ void DatabaseBackendDispatcher::executeNoOptionalParameters(long requestId, RefP
         result->setString(ASCIILiteral("printColor"), Inspector::Protocol::getEnumConstantValue(out_printColor));
     }
     if (!error.length())
-        m_backendDispatcher->sendResponse(requestId, WTF::move(result));
+        m_backendDispatcher->sendResponse(requestId, WTFMove(result));
     else
-        m_backendDispatcher->reportProtocolError(BackendDispatcher::ServerError, WTF::move(error));
+        m_backendDispatcher->reportProtocolError(BackendDispatcher::ServerError, WTFMove(error));
 }
 
 } // namespace Inspector
@@ -588,7 +588,7 @@ public:
         }
 
         Builder(Ref</*Error*/InspectorObject>&& object)
-            : m_result(WTF::move(object))
+            : m_result(WTFMove(object))
         {
             COMPILE_ASSERT(STATE == NoFieldsSet, builder_created_in_non_init_state);
         }
@@ -615,7 +615,7 @@ public:
             COMPILE_ASSERT(sizeof(Error) == sizeof(InspectorObject), cannot_cast);
 
             Ref<InspectorObject> result = m_result.releaseNonNull();
-            return WTF::move(*reinterpret_cast<Ref<Error>*>(&result));
+            return WTFMove(*reinterpret_cast<Ref<Error>*>(&result));
         }
     };
 
@@ -831,8 +831,8 @@ using namespace Inspector;
     _databaseHandler = [handler retain];
 
     auto alternateDispatcher = std::make_unique<ObjCInspectorDatabaseBackendDispatcher>(handler);
-    auto alternateAgent = std::make_unique<AlternateDispatchableAgent<DatabaseBackendDispatcher, AlternateDatabaseBackendDispatcher>>(ASCIILiteral("Database"), *_controller, WTF::move(alternateDispatcher));
-    _controller->appendExtraAgent(WTF::move(alternateAgent));
+    auto alternateAgent = std::make_unique<AlternateDispatchableAgent<DatabaseBackendDispatcher, AlternateDatabaseBackendDispatcher>>(ASCIILiteral("Database"), *_controller, WTFMove(alternateDispatcher));
+    _controller->appendExtraAgent(WTFMove(alternateAgent));
 }
 
 - (id<RWIProtocolDatabaseDomainHandler>)databaseHandler
@@ -961,7 +961,7 @@ void ObjCInspectorDatabaseBackendDispatcher::executeAllOptionalParameters(long r
             resultObject->setArray(ASCIILiteral("alternateColors"), inspectorStringArray(*alternateColors));
         if (printColor)
             resultObject->setString(ASCIILiteral("printColor"), toProtocolString(*printColor));
-        backendDispatcher()->sendResponse(requestId, WTF::move(resultObject));
+        backendDispatcher()->sendResponse(requestId, WTFMove(resultObject));
     };
 
     NSArray/*<NSString>*/ *o_in_columnNames;
@@ -1023,7 +1023,7 @@ void ObjCInspectorDatabaseBackendDispatcher::executeNoOptionalParameters(long re
         resultObject->setString(ASCIILiteral("screenColor"), toProtocolString(screenColor));
         resultObject->setArray(ASCIILiteral("alternateColors"), inspectorStringArray(alternateColors));
         resultObject->setString(ASCIILiteral("printColor"), toProtocolString(printColor));
-        backendDispatcher()->sendResponse(requestId, WTF::move(resultObject));
+        backendDispatcher()->sendResponse(requestId, WTFMove(resultObject));
     };
 
     NSArray/*<NSString>*/ *o_in_columnNames = objcStringArray(&in_columnNames);