diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-08-03 10:28:49 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-06 01:31:14 +0200 |
commit | 9f006a863a803a7daac2e44e9c8b79eff16f00d1 (patch) | |
tree | 62f1646c983c36bb0f8ba560e41010b09f377868 /src/corelib/global/qlogging.cpp | |
parent | 063e3a4da82a7ffb38afb26c3be0231e4e4dc37d (diff) |
Logging: mark qEmergencyOut() noexcept
This function is called in OOM situations and when other exceptions
are still in flight, so it really shouldn't throw, indeed.
Change-Id: I50cda699ffd74f3710c3bafd15af356ff410bc47
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/corelib/global/qlogging.cpp')
-rw-r--r-- | src/corelib/global/qlogging.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp index c567d339fd..bb12807f9a 100644 --- a/src/corelib/global/qlogging.cpp +++ b/src/corelib/global/qlogging.cpp @@ -100,7 +100,7 @@ extern bool usingWinMain; everything after character 255, but will work in out of memory situations. Stop the execution afterwards. */ -static void qEmergencyOut(QtMsgType msgType, const char *msg, va_list ap) +static void qEmergencyOut(QtMsgType msgType, const char *msg, va_list ap) Q_DECL_NOEXCEPT { char emergency_buf[256] = { '\0' }; emergency_buf[255] = '\0'; |