From eb7c795a9172bf3ee643e72cbd67db062c9883a3 Mon Sep 17 00:00:00 2001 From: James Perrett Date: Thu, 8 Jul 2010 15:06:12 +0200 Subject: Use Q_ASSERT_X() rather than Q_ASSERT(!"message") idiom MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids warnings on some compilers. Reviewed-by: Jørgen Lind --- src/plugins/gfxdrivers/eglnullws/eglnullwsscreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v0.12