Replace more instances of += with StringBuilder
[WebKit-https.git] / Source / WebCore / inspector / InspectorClient.cpp
index 37c7bc2..867e0bb 100644 (file)
@@ -55,9 +55,7 @@ bool InspectorClient::doDispatchMessageOnFrontendPage(Page* frontendPage, const
     if (!scriptController)
         return false;
 
-    String dispatchToFrontend("WebInspector.dispatchMessageFromBackend(");
-    dispatchToFrontend += message;
-    dispatchToFrontend += ");";
+    String dispatchToFrontend = "WebInspector.dispatchMessageFromBackend(" + message + ");";
 
     // FIXME: This should execute the script in the appropriate world.
     scriptController->evaluate(ScriptSourceCode(dispatchToFrontend));