From d5d90d1518f9767874a2a22733ce7753aef328d2 Mon Sep 17 00:00:00 2001 From: Warwick Allison Date: Mon, 11 Jan 2010 13:50:48 +1000 Subject: Don't put necessary code in Q_ASSERT (test failed in release mode) --- tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp b/tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp index 543ba3f..c244030 100644 --- a/tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp +++ b/tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp @@ -90,8 +90,8 @@ static QString strippedHtml(QString html) static QString fileContents(const QString& filename) { QFile file(filename); - Q_ASSERT(file.open(QIODevice::ReadOnly)); - return file.readAll(); + file.open(QIODevice::ReadOnly); + return QString::fromUtf8(file.readAll()); } -- cgit v0.12