[RFC] Proper initialization of class members and variables

Kevin Krammer kevin.krammer at gmx.at
Sat Nov 19 13:38:00 GMT 2005


On Saturday 19 November 2005 11:11, Christian Ehrlicher wrote:
> +      else
> +      {
> +       m_sycocaDict = 0;
> +      }
> +      m_entryDict = 0;
> +      m_resourceList = 0;

Wouldn't it be cleaner to initialize the variables in the constructor's 
initalization list?

Cheers,
Kevin

-- 
Kevin Krammer <kevin.krammer at gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtforum.org
-------------- 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/20051119/dff9582e/attachment.sig>


More information about the kde-core-devel mailing list