Fix Q_STATIC_ASSERT on Mac
authorJoão Abecasis <joao.abecasis@nokia.com>
Thu, 10 Nov 2011 12:15:22 +0000 (13:15 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 10 Nov 2011 12:17:52 +0000 (13:17 +0100)
commit95d7abb694d5d21acf0a15dcbf3feb4514bd2ab4
tree39ce4297aafdf3f3cf69d115b0e7763cba357410
parent5665c6a55adc536d14404bd2606ab67ff5101ae9
Fix Q_STATIC_ASSERT on Mac

gcc 4.2.1 complains about the use of C++-style cast in the macro.

    error: template argument 1 is invalid

. Changing the bool-cast to a C-style cast makes the test compile.

Change-Id: Ie9082a3adbfd53147bfd0bfe36dd9e7328e01ee8
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
src/corelib/global/qglobal.h