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 <thiago.macieira@intel.com>
This commit is contained in:
Kai Koehne 2014-04-29 12:33:06 +02:00 committed by The Qt Project
parent 8c0b28a5a8
commit 7cafb62538

View File

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