Remove special NOTHROW handling
We no longer have any MSVC support that wouldn't set Q_DECL_NOEXCEPT Change-Id: I3e2c74cb89b9c56ffaf17001004c87b88622da82 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
682513bed4
commit
53abc0f664
@ -110,12 +110,6 @@
|
||||
# define Q_CC_INTEL __INTEL_COMPILER
|
||||
# endif
|
||||
|
||||
/* only defined for MSVC since that's the only compiler that actually optimizes for this */
|
||||
/* might get overridden further down when Q_COMPILER_NOEXCEPT is detected */
|
||||
# ifdef __cplusplus
|
||||
# define Q_DECL_NOTHROW throw()
|
||||
# endif
|
||||
|
||||
#elif defined(__BORLANDC__) || defined(__TURBOC__)
|
||||
# define Q_CC_BOR
|
||||
# define Q_INLINE_TEMPLATE
|
||||
@ -1128,16 +1122,11 @@
|
||||
#ifdef Q_COMPILER_NOEXCEPT
|
||||
# define Q_DECL_NOEXCEPT noexcept
|
||||
# define Q_DECL_NOEXCEPT_EXPR(x) noexcept(x)
|
||||
# ifdef Q_DECL_NOTHROW
|
||||
# undef Q_DECL_NOTHROW /* override with C++11 noexcept if available */
|
||||
# endif
|
||||
#else
|
||||
# define Q_DECL_NOEXCEPT
|
||||
# define Q_DECL_NOEXCEPT_EXPR(x)
|
||||
#endif
|
||||
#ifndef Q_DECL_NOTHROW
|
||||
# define Q_DECL_NOTHROW Q_DECL_NOEXCEPT
|
||||
#endif
|
||||
#define Q_DECL_NOTHROW Q_DECL_NOEXCEPT
|
||||
|
||||
#if defined(Q_COMPILER_ALIGNOF)
|
||||
# undef Q_ALIGNOF
|
||||
|
Loading…
x
Reference in New Issue
Block a user