diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2012-01-24 18:36:51 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-24 19:12:23 +0100 |
commit | cf5b3c18ddff1f7edd8ff53e0db195e2d746fc01 (patch) | |
tree | e518b2a57e76693d63fca95c9a7af3e30c083d97 /src/corelib | |
parent | 992e50e42169216e7fe75c934e4701b2f03dedee (diff) |
Remove Q_COMPILER_FINAL
Merge it with Q_COMPILER_EXPLICIT_OVERRIDES
No compiler will implement one and not the other,
"overrideS" is a shortcut for the two features
It was even wrongly not defined with clang
Change-Id: I22dcffe6f0c96285c2b409a5ae9ce2f6f1652094
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/global/qglobal.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 8ae8dba8b1..66628317e1 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -513,7 +513,6 @@ namespace QT_NAMESPACE {} # if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 /* C++0x features supported in GCC 4.7: */ # define Q_COMPILER_EXPLICIT_OVERRIDES -# define Q_COMPILER_FINAL # endif # endif @@ -805,7 +804,6 @@ namespace QT_NAMESPACE {} # if 0 /*) not implemented in clang */ # define Q_COMPILER_ATOMICS # define Q_COMPILER_CONSTEXPR -# define Q_COMPILER_FINAL # define Q_COMPILER_INITIALIZER_LISTS # define Q_COMPILER_LAMBDA # define Q_COMPILER_UNRESTRICTED_UNIONS @@ -1108,13 +1106,9 @@ QT_END_INCLUDE_NAMESPACE #ifdef Q_COMPILER_EXPLICIT_OVERRIDES # define Q_DECL_OVERRIDE override -#else -# define Q_DECL_OVERRIDE -#endif - -#ifdef Q_COMPILER_FINAL # define Q_DECL_FINAL final #else +# define Q_DECL_OVERRIDE # define Q_DECL_FINAL #endif |