qt5base-lts/tests/auto/corelib
Thiago Macieira 50d3a2917e Fix Q_GLOBAL_STATIC support for exceptions
The problem was that the HolderBase destructor was getting called after
the contained type's constructor threw an exception, as is required by
RAII semantics (the base was fully initialized, so it had to be
destroyed). That was required because we want to return a non-null
pointer from operator() during destruction and return null after
destruction, to keep compatibility with Qt 4.

The solution is to only set the guard to Destroyed only if it is already
at value Initialized. This way, if the HolderBase destructor is run as
part of the stack unwinding, it knows that the construction did not
complete.

Change-Id: I9849b43ed7112bf9e70861b48a56a924c286617e
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2013-02-28 23:43:46 +01:00
..
animation Merge remote-tracking branch 'origin/stable' into dev 2013-01-22 18:40:13 +01:00
codecs Correctly detect HTML 5 charset attribute in QTextCodec::codecForHtml() 2013-02-12 01:31:26 +01:00
global Fix Q_GLOBAL_STATIC support for exceptions 2013-02-28 23:43:46 +01:00
io tst_qfile: remove unused variable 2013-02-27 16:00:08 +01:00
itemmodels Merge remote-tracking branch 'origin/stable' into dev 2013-02-14 14:24:57 +01:00
json Add toJson() formatting argument to QJsonDocument interface 2013-01-26 03:09:27 +01:00
kernel Add private API to connect to slots in QObjectPrivate 2013-02-28 19:22:05 +01:00
mimetypes Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
plugin Make sure that the reference count for plugins is kept correctly 2013-02-27 07:09:18 +01:00
statemachine Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
thread Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
tools Fix QString::toUcs4() returns incorrectly resized QVector 2013-02-27 03:13:30 +01:00
xml Check for network module when building according auto tests 2013-02-19 19:20:53 +01:00
corelib.pro Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00