summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess
diff options
context:
space:
mode:
authorcommit-queue <commit-queue@webkit.org>2012-09-28 10:35:11 +0000
committerSimon Hausmann <simon.hausmann@digia.com>2012-10-17 08:57:45 +0200
commitd45ff9df96f475d5ae3b68eb709278eac93e6a92 (patch)
treeff2e8d487411d28c8970b1146f75879d32f01677 /Source/WebKit2/UIProcess
parentb297e0fa5c217c9467033b7c8b46891a52870120 (diff)
downloadqtwebkit-d45ff9df96f475d5ae3b68eb709278eac93e6a92.tar.gz
Source/WebKit2: [Qt] Use qInstallMessageHandler() https://bugs.webkit.org/show_bug.cgi?id=96648
Patch by Kai Koehne <kai.koehne@digia.com> on 2012-09-28 Reviewed by Jocelyn Turcotte. qInstallMsgHandler() got deprecated in Qt 5. * PluginProcess/qt/PluginProcessMainQt.cpp: (WebKit::messageHandler): (WebKit::PluginProcessMain): * UIProcess/API/qt/tests/util.cpp: (messageHandler): (suppressDebugOutput): * qt/MainQt.cpp: (messageHandler): (main): Tools: [Qt] Use qInstallMessageHandler() https://bugs.webkit.org/show_bug.cgi?id=96648 Patch by Kai Koehne <kai.koehne@digia.com> on 2012-09-28 Reviewed by Jocelyn Turcotte. qInstallMsgHandler() got deprecated in Qt 5. * DumpRenderTree/qt/DumpRenderTreeMain.cpp: (messageHandler): (main): * WebKitTestRunner/qt/main.cpp: (messageHandler): (main): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129870 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Diffstat (limited to 'Source/WebKit2/UIProcess')
-rw-r--r--Source/WebKit2/UIProcess/API/qt/tests/util.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/WebKit2/UIProcess/API/qt/tests/util.cpp b/Source/WebKit2/UIProcess/API/qt/tests/util.cpp
index 4525e882b..c65fae305 100644
--- a/Source/WebKit2/UIProcess/API/qt/tests/util.cpp
+++ b/Source/WebKit2/UIProcess/API/qt/tests/util.cpp
@@ -57,10 +57,10 @@ bool waitForSignal(QObject* obj, const char* signal, int timeout)
return timeoutSpy.isEmpty();
}
-static void messageHandler(QtMsgType type, const char* message)
+static void messageHandler(QtMsgType type, const QMessageLogContext&, const QString& message)
{
if (type == QtCriticalMsg) {
- fprintf(stderr, "%s\n", message);
+ fprintf(stderr, "%s\n", qPrintable(message));
return;
}
// Do nothing
@@ -68,7 +68,7 @@ static void messageHandler(QtMsgType type, const char* message)
void suppressDebugOutput()
{
- qInstallMsgHandler(messageHandler); \
+ qInstallMessageHandler(messageHandler); \
if (qgetenv("QT_WEBKIT_SUPPRESS_WEB_PROCESS_OUTPUT").isEmpty()) \
qputenv("QT_WEBKIT_SUPPRESS_WEB_PROCESS_OUTPUT", "1");
}