kiconloader's other api change
Thiago Macieira
thiago at kde.org
Sat Jan 6 04:48:13 GMT 2007
David Faure wrote:
>static KIconLoader* s_global;
>static KStaticDeleter<KIconLoader> s_globalSd;
>KIconLoader* KIconLoader::global()
>{
> if (!s_global)
> s_globalSd.setObject( s_global, new KIconLoader(
> KGlobal::instance() ) ); return s_global;
>}
Q_GLOBAL_STATIC(KIconLoader, globalLoader)
KIconLoader *KIconLoader::global()
{
return globalLoader();
}
KStaticDeleter isn't thread-safe.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070106/036058cb/attachment.sig>
More information about the kde-core-devel
mailing list