[Live-devel] [patch] initialized member variables in ctor

Erik Hovland erik at hovland.org
Tue Jul 8 09:06:57 PDT 2008


OK, now I am really starting to run out of issues. How do I know? Well,
I am starting to produce the member variable initialization in
constructor patches. These defects are just because it is good C++
practice to initialize member variables in the ctor of the class to make
sure that these member variables are in a known state at instantiation.
But they rarely turn into full blown bugs. So they usually come last in
any audit of the code base. Next step after this is the compiler
warnings patch (which I have also worked up).

Anyhow, here is a patch which initializes member variables in the class
ctor.

E

-- 
Erik Hovland
mail: erik at hovland.org
web: http://hovland.org/
PGP/GPG public key available on request
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uninit-in-ctor.patch
Type: text/x-diff
Size: 23803 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080708/2b18b0fc/attachment-0001.bin>


More information about the live-devel mailing list