diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-09-08 13:31:58 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-09-08 13:31:58 (GMT) |
commit | f05b4bf65c86bc9ba22f6504f4109d2b49dfd627 (patch) | |
tree | c60e36b6aa410e8f60e1ebf04559594766f42dce /tests/auto/qimage | |
parent | 46cb697b5e2eadfdad37aa6fcbdb58abf305de45 (diff) | |
download | Qt-f05b4bf65c86bc9ba22f6504f4109d2b49dfd627.zip Qt-f05b4bf65c86bc9ba22f6504f4109d2b49dfd627.tar.gz Qt-f05b4bf65c86bc9ba22f6504f4109d2b49dfd627.tar.bz2 |
Fix tst_qimage with QT_NO_EXCEPTIONS
Diffstat (limited to 'tests/auto/qimage')
-rw-r--r-- | tests/auto/qimage/tst_qimage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qimage/tst_qimage.cpp b/tests/auto/qimage/tst_qimage.cpp index ec0ecec..b446941 100644 --- a/tests/auto/qimage/tst_qimage.cpp +++ b/tests/auto/qimage/tst_qimage.cpp @@ -156,14 +156,14 @@ void tst_QImage::create() { bool cr = true; #if !defined(Q_WS_QWS) && !defined(Q_OS_WINCE) - try { + QT_TRY { #endif //QImage image(7000000, 7000000, 8, 256, QImage::IgnoreEndian); QImage image(7000000, 7000000, QImage::Format_Indexed8); image.setColorCount(256); cr = !image.isNull(); #if !defined(Q_WS_QWS) && !defined(Q_OS_WINCE) - } catch (...) { + } QT_CATCH (...) { } #endif QVERIFY( !cr ); |