K_GLOBAL_STATIC and other macros
David Faure
faure at kde.org
Fri Apr 13 13:22:13 BST 2007
On Friday 13 April 2007, Thiago Macieira wrote:
> I'd add that the installation of the post routine is not mandatory. The
> object will be deleted anyways (as long as the platform isn't broken,
> which can happen). The qAddPostRoutine is a way to make the object be
> deleted inside ~QCoreApplication. Otherwise, it's deleted at program
> unload.
Yes, and if the destructor calls e.g. KConfig::sync() then it will crash, since
it's too late then to use QTemporaryFile (since Qt-4.3).
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel
mailing list