From 7cafb62538661863e5c5a0d27b5250bc8f0cdb50 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Tue, 29 Apr 2014 12:33:06 +0200 Subject: Remove OOM exception handling from QDebug According to the documentation, Qt doesn't even attempt to handle OOM issues anymore. It's questionable in the first place why this should be available only for the stream operator logging ... Change-Id: If94c971793bc6c6773daf3997fe82b410a29538d Reviewed-by: Thiago Macieira --- src/corelib/io/qdebug.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/corelib') diff --git a/src/corelib/io/qdebug.h b/src/corelib/io/qdebug.h index bdaaa05768..a1294d0b40 100644 --- a/src/corelib/io/qdebug.h +++ b/src/corelib/io/qdebug.h @@ -83,11 +83,9 @@ public: if (stream->space && stream->buffer.endsWith(QLatin1Char(' '))) stream->buffer.chop(1); if (stream->message_output) { - QT_TRY { - qt_message_output(stream->type, - stream->context, - stream->buffer); - } QT_CATCH(std::bad_alloc&) { /* We're out of memory - give up. */ } + qt_message_output(stream->type, + stream->context, + stream->buffer); } delete stream; } -- cgit v1.2.3