KCModule & KConfigXT
Matthias Kretz
kretz at kde.org
Sat Jul 10 11:43:26 BST 2004
On Friday 09 July 2004 23:58, Frans Englich wrote:
> Attached rough patch tries to add KConfigXT support to KCModule. Attached
> main.cpp(plus a designer and kcfg file) is an example on how the code would
> look like for such an module. "It Works."
Why do you need to discard the first call to KCModule::changed()? This will of
course break existing code...
You added a new ctor to KCModule, right? But the other ctors set d->_instance,
yours doesn't. d->_instance is uninitialized but later on deleted by the dtor
and could be dereferenced by using KCModule::instance().
Perhaps you shouldn't add the new ctor but only the addConfig method.
--
C'ya
Matthias
________________________________________________________
Matthias Kretz (Germany) <><
http://Vir.homeip.net/
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
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040710/10d3f3ad/attachment.sig>
More information about the kde-core-devel
mailing list