Avoid using QTestResult::ignoreMessage().
authorJason McDonald <jason.mcdonald@nokia.com>
Fri, 13 Jan 2012 03:13:35 +0000 (13:13 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Jan 2012 07:10:42 +0000 (08:10 +0100)
QTestResult::ignoreMessage() is just a wrapper around
QTestLog::ignoreMessage(). Both are private API, so just call the latter
directly so that the former can be removed from the API.

Change-Id: Icf77e2bf656afc556205ddf0dda5bb48fdbdfbbf
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
src/qmltest/quicktestresult.cpp

index 2232a0b..af2324b 100644 (file)
@@ -437,7 +437,7 @@ void QuickTestResult::warn(const QString &message, const QUrl &location, int lin
 
 void QuickTestResult::ignoreWarning(const QString &message)
 {
-    QTestResult::ignoreMessage(QtWarningMsg, message.toLatin1().constData());
+    QTestLog::ignoreMessage(QtWarningMsg, message.toLatin1().constData());
 }
 
 void QuickTestResult::wait(int ms)