From 3bcd4c3506c9352874f1403aba22e36108a867a2 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Thu, 28 Sep 2017 09:25:50 +0200 Subject: Use printf style qDebug This generates more compact code. It also fixes a build issue with some disabled features on macOS. Task-number: QTBUG-63440 Change-Id: Ice800bdfef09dd83310d40cadd37c15c846ca3e1 Reviewed-by: Viktor Engelmann Reviewed-by: Christian Stromme --- src/webview/qquickwebview.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/webview/qquickwebview.cpp') diff --git a/src/webview/qquickwebview.cpp b/src/webview/qquickwebview.cpp index a486088..eb0727a 100644 --- a/src/webview/qquickwebview.cpp +++ b/src/webview/qquickwebview.cpp @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2015 The Qt Company Ltd. +** Copyright (C) 2017 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the QtWebView module of the Qt Toolkit. @@ -39,7 +39,6 @@ #include #include #include -#include namespace { @@ -311,7 +310,7 @@ void QQuickWebView::onRunJavaScriptResult(int id, const QVariant &variant) QQmlEngine *engine = qmlEngine(this); if (engine == 0) { - qWarning() << "No JavaScript engine, unable to handle JavaScript callback!"; + qWarning("No JavaScript engine, unable to handle JavaScript callback!"); return; } -- cgit v1.2.3