Can Q_GLOBAL_STATIC replace KStaticDelete ?
kretz at kde.org
Wed Jan 17 11:51:54 GMT 2007
I'm all for moving to Q_GLOBAL_STATIC where it doesn't break things. I.e. it
will break if the dtor (or code called by the dtor) needs other objects like
KInstance or QCoreApplication.
For example a dirty KConfig object will need a KInstance object.
For those global statics we need to add a way to get destructed before
~KInstance is called.
I'm working on a K_GLOBAL_STATIC macro right now...
On Wednesday 17 January 2007 11:17, Olivier Goffart wrote:
> So finally, what is the consensus ?
> Any objection to mark KStaticDeleter as deprecated, and start moving the
> code to Q_GLOBAL_STATIC ?
> Also, I still have one issue to use undocumented Qt macro.
> If Trolltech doesn't want to document them, I think we should at least
> document them ourself (on developper.kde.org)
Matthias Kretz (Germany) <><
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the kde-core-devel