Misuse of K_GLOBAL_STATIC?

Matthias Kretz kretz at kde.org
Wed May 14 12:55:04 BST 2008


On Wednesday 14 May 2008, Jaroslaw Staniek wrote:
> Or.. perhaps there's no difference for static data, which is exactly what
> K_GLOBAL_STATIC defines...
> Of course the rationale for keeping that, is: the ctors are often private
> so there's no way to move K_GLOBAL_STATIC out.
> If there's no flaw in this the usage, I'll just think about updating api
> docs.

How to make ctors/dtors private is documented:
http://api.kde.org/4.x-api/kdelibs-apidocs/kdecore/html/group__KDEMacros.html#g75ca0c60b03dc5e4f9427263bf4043c7

-- 
________________________________________________________
Matthias Kretz (Germany)                            <><
http://Vir.homelinux.org/
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080514/868b05d2/attachment.sig>


More information about the kde-core-devel mailing list