diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-01-11 03:50:48 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-01-11 03:50:48 (GMT) |
commit | d5d90d1518f9767874a2a22733ce7753aef328d2 (patch) | |
tree | a770883f992479118ba7faed957621647da89ca7 /tests/auto/declarative/qmlgraphicswebview | |
parent | 3f095e957f27744c9c7a79679e35bfcc9db161fd (diff) | |
download | Qt-d5d90d1518f9767874a2a22733ce7753aef328d2.zip Qt-d5d90d1518f9767874a2a22733ce7753aef328d2.tar.gz Qt-d5d90d1518f9767874a2a22733ce7753aef328d2.tar.bz2 |
Don't put necessary code in Q_ASSERT
(test failed in release mode)
Diffstat (limited to 'tests/auto/declarative/qmlgraphicswebview')
-rw-r--r-- | tests/auto/declarative/qmlgraphicswebview/tst_qmlgraphicswebview.cpp | 4 |
1 files 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()); } |