From 9f006a863a803a7daac2e44e9c8b79eff16f00d1 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 3 Aug 2012 10:28:49 +0200 Subject: [PATCH] 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 --- src/corelib/global/qlogging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';