make KLibrary's kde3Factory behave like kde4Factory

Matthias Kretz kretz at kde.org
Tue Oct 9 19:37:00 BST 2007


Hi,

attached you'll find a patch that makes kde3Factory (helper function of 
KLibrary) behave the same as kde4Factory does, i.e.:
- create new KPluginFactory instance if called the first time
- return a pointer to the old KPluginFactory object if called a second time
- when the KPluginFactory object is deleted, create it anew
This restores the old behaviour we had with KLibLoader/KLibrary.

Please review and let me know whether I should commit.

-- 
________________________________________________________
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: kde3Factory.patch
Type: text/x-diff
Size: 1377 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071009/1657db99/attachment.patch>
-------------- 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/20071009/1657db99/attachment.sig>


More information about the kde-core-devel mailing list