summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qlogging.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2012-08-03 10:28:49 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-06 01:31:14 +0200
commit9f006a863a803a7daac2e44e9c8b79eff16f00d1 (patch)
tree62f1646c983c36bb0f8ba560e41010b09f377868 /src/corelib/global/qlogging.cpp
parent063e3a4da82a7ffb38afb26c3be0231e4e4dc37d (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.cpp2
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';