diff options
author | Iain <qt-info@nokia.com> | 2009-11-05 12:32:39 (GMT) |
---|---|---|
committer | Janne Koskinen <janne.p.koskinen@digia.com> | 2010-02-01 09:09:17 (GMT) |
commit | ca3ce9263eaef963d934d221bd1dec37e7bf0871 (patch) | |
tree | 6400d5e704d6a588d3a4dcc74bacc302b8a9dd34 | |
parent | f512c8a279518e992ae59c13c17453ac2769359e (diff) | |
download | Qt-ca3ce9263eaef963d934d221bd1dec37e7bf0871.zip Qt-ca3ce9263eaef963d934d221bd1dec37e7bf0871.tar.gz Qt-ca3ce9263eaef963d934d221bd1dec37e7bf0871.tar.bz2 |
Catch by reference rather than by value
Catching by value causes GCC to use the compiler support function
__cxa_get_exception_ptr. This is not available in the compiler support
libraries on Symbian OS prior to Symbian^3. Catching by reference
avoids this problem.
Reviewed-by: mread
-rw-r--r-- | src/corelib/io/qdebug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qdebug.h b/src/corelib/io/qdebug.h index 1c68716..bc68599 100644 --- a/src/corelib/io/qdebug.h +++ b/src/corelib/io/qdebug.h @@ -83,7 +83,7 @@ public: if(stream->message_output) { QT_TRY { qt_message_output(stream->type, stream->buffer.toLocal8Bit().data()); - } QT_CATCH(std::bad_alloc) { /* We're out of memory - give up. */ } + } QT_CATCH(std::bad_alloc&) { /* We're out of memory - give up. */ } } delete stream; } |