From 991d9cf928371a9896a154e73e596a745a2115f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Nowacki?= Date: Tue, 1 Nov 2011 14:41:10 +0100 Subject: Fix broken build. Variadic macros are not supported by C++98 standard. Change-Id: Ib520297e43b654b46925f3ee2735a975ebbe8e35 Reviewed-by: Thiago Macieira --- tests/auto/corelib/global/qglobal/tst_qglobal.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/auto/corelib/global/qglobal') diff --git a/tests/auto/corelib/global/qglobal/tst_qglobal.cpp b/tests/auto/corelib/global/qglobal/tst_qglobal.cpp index 9dc78a14c0..9c6e5ced47 100644 --- a/tests/auto/corelib/global/qglobal/tst_qglobal.cpp +++ b/tests/auto/corelib/global/qglobal/tst_qglobal.cpp @@ -319,8 +319,9 @@ struct Template struct MyTemplate { - Q_STATIC_ASSERT(Template::True); - Q_STATIC_ASSERT(!!Template::True); + static const bool Value = Template::True; + Q_STATIC_ASSERT(Value); + Q_STATIC_ASSERT(!!Value); }; void tst_QGlobal::qstaticassert() -- cgit v1.2.3