[RFC] Proper initialization of class members and variables

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Mon Nov 21 12:33:42 GMT 2005

> On Saturday 19 November 2005 11:11, Christian Ehrlicher wrote:
> > I've attached a small patch to fix this for
> > kdelibs/kdecore/ksycocafactory.cpp
> I don't agree. You initialize m_sycocaDict here with 0L, while the rest of
> the 
> class expects it to be non-null. 
> Does the attached patch work for you?
Yes, I think (but now I've a working kbuildsycoca.exe so I maybe don't hit
this anymore) - it was just a showcase that there was something
uninitialised. As stated earlier in this thread, initialization should be
done in the constructor.


10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++

More information about the kde-core-devel mailing list