diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-08-16 17:18:13 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-08-19 09:15:39 +0200 |
commit | 0329792602310577fa66c6991b891140b6edd210 (patch) | |
tree | ef71e52870bc650cff4957057f455635e3c121df /src/corelib/global/qglobal.cpp | |
parent | 7d228473719e51995d3ebb497c53c93959e8b58b (diff) |
Extract header qexceptionhandling.h from qglobal.h
As a drive-by, remove the unused include for std::bad_alloc from
qglobal.cpp.
Task-number: QTBUG-99313
Change-Id: I4b26b4413e6fe7ac3b1e285d0db5b81b429a4713
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib/global/qglobal.cpp')
-rw-r--r-- | src/corelib/global/qglobal.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp index 6acfefd771..de28cd87af 100644 --- a/src/corelib/global/qglobal.cpp +++ b/src/corelib/global/qglobal.cpp @@ -22,11 +22,6 @@ #include <stdarg.h> #include <string.h> -#include <exception> // For std::terminate -#ifndef QT_NO_EXCEPTIONS -#include <new> // For std::bad_alloc -#endif - #include <errno.h> #if defined(Q_CC_MSVC) # include <crtdbg.h> @@ -2641,16 +2636,6 @@ QByteArray QSysInfo::bootUniqueId() */ /* - \internal - Allows you to call std::terminate() without including <exception>. - Called internally from QT_TERMINATE_ON_EXCEPTION -*/ -Q_NORETURN void qTerminate() noexcept -{ - std::terminate(); -} - -/* Dijkstra's bisection algorithm to find the square root of an integer. Deliberately not exported as part of the Qt API, but used in both qsimplerichtext.cpp and qgfxraster_qws.cpp |