summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/global/qglobal
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>2011-11-01 14:41:10 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-01 16:15:08 +0100
commit991d9cf928371a9896a154e73e596a745a2115f1 (patch)
treee2be4cd594aad45557145d2f25fe43099750de47 /tests/auto/corelib/global/qglobal
parentd3710a13a634df3296b479e81c4a57ba79425aae (diff)
Fix broken build.
Variadic macros are not supported by C++98 standard. Change-Id: Ib520297e43b654b46925f3ee2735a975ebbe8e35 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/global/qglobal')
-rw-r--r--tests/auto/corelib/global/qglobal/tst_qglobal.cpp5
1 files changed, 3 insertions, 2 deletions
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<TypeDef, int>::True);
- Q_STATIC_ASSERT(!!Template<TypeDef, int>::True);
+ static const bool Value = Template<TypeDef, int>::True;
+ Q_STATIC_ASSERT(Value);
+ Q_STATIC_ASSERT(!!Value);
};
void tst_QGlobal::qstaticassert()