diff options
Diffstat (limited to 'src/corelib/global/qexceptionhandling.h')
| -rw-r--r-- | src/corelib/global/qexceptionhandling.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/global/qexceptionhandling.h b/src/corelib/global/qexceptionhandling.h index 7ffd0798f6f..6c547a90630 100644 --- a/src/corelib/global/qexceptionhandling.h +++ b/src/corelib/global/qexceptionhandling.h @@ -22,7 +22,6 @@ QT_BEGIN_NAMESPACE If you can't live with those constraints, don't use these macros. Use the QT_NO_EXCEPTIONS macro to protect your code instead. */ -Q_NORETURN Q_DECL_COLD_FUNCTION Q_CORE_EXPORT void qTerminate() noexcept; #ifdef QT_NO_EXCEPTIONS # define QT_TRY if (true) # define QT_CATCH(A) else @@ -35,6 +34,10 @@ Q_NORETURN Q_DECL_COLD_FUNCTION Q_CORE_EXPORT void qTerminate() noexcept; # define QT_RETHROW throw #endif +#if QT_CORE_REMOVED_SINCE(6, 9) +Q_NORETURN Q_DECL_COLD_FUNCTION Q_CORE_EXPORT void qTerminate() noexcept; +#endif + QT_END_NAMESPACE #endif // QEXCEPTIONHANDLING_H |
