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>
This commit is contained in:
Marc Mutz 2012-08-03 10:28:49 +02:00 committed by Qt by Nokia
parent 063e3a4da8
commit 9f006a863a

View File

@ -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';