diff options
author | James Perrett <james.perrett@tandberg.com> | 2010-07-08 13:06:12 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-07-08 13:06:12 (GMT) |
commit | eb7c795a9172bf3ee643e72cbd67db062c9883a3 (patch) | |
tree | a8fb1615d27dd54c4c492c9369f96d1c06db4fbd /src/plugins | |
parent | c4179a0e29dab5034c1980622df88a05724706e4 (diff) | |
download | Qt-eb7c795a9172bf3ee643e72cbd67db062c9883a3.zip Qt-eb7c795a9172bf3ee643e72cbd67db062c9883a3.tar.gz Qt-eb7c795a9172bf3ee643e72cbd67db062c9883a3.tar.bz2 |
Use Q_ASSERT_X() rather than Q_ASSERT(!"message") idiom
This avoids warnings on some compilers.
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/gfxdrivers/eglnullws/eglnullwsscreen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/gfxdrivers/eglnullws/eglnullwsscreen.cpp b/src/plugins/gfxdrivers/eglnullws/eglnullwsscreen.cpp index 9a21447..341caff 100644 --- a/src/plugins/gfxdrivers/eglnullws/eglnullwsscreen.cpp +++ b/src/plugins/gfxdrivers/eglnullws/eglnullwsscreen.cpp @@ -51,7 +51,7 @@ static int depthForFormat(QImage::Format format) case QImage::Format_RGB888: return 24; case QImage::Format_RGB444: return 16; default: - Q_ASSERT(!"Unknown format"); + Q_ASSERT_X(false, "EGLNullWSScreen", "Unknown format"); return -1; } } |