take a QString as identifier in QWebFrame::addToJSWindowObject.
[WebKit-https.git] / WebKitTools / DumpRenderTree / qt / DumpRenderTree.cpp
index 05be4bc1b6689fa7e859a9e69fb3cd1e8742f835..40716faa538475c55aada55de9b79d931ade4314 100644 (file)
@@ -182,9 +182,9 @@ void DumpRenderTree::initJSObjects()
 {
     QWebFrame *frame = qobject_cast<QWebFrame*>(sender());
     Q_ASSERT(frame);
-    frame->addToJSWindowObject("layoutTestController", m_controller);
-    frame->addToJSWindowObject("eventSender", m_eventSender);
-    frame->addToJSWindowObject("textInputController", m_textInputController);
+    frame->addToJSWindowObject(QLatin1String("layoutTestController"), m_controller);
+    frame->addToJSWindowObject(QLatin1String("eventSender"), m_eventSender);
+    frame->addToJSWindowObject(QLatin1String("textInputController"), m_textInputController);
 }