diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-11-23 20:25:07 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-11-23 23:51:35 +0100 |
commit | 4e1ae2a9a0d2d9185b49677fa4ea2a2b1fe8bab2 (patch) | |
tree | 0337a97264ee26ac753ebf66b15f45555e2e0e0d /cppu | |
parent | e6ab01ce532d1db01579b70bd476b2f643522bf9 (diff) |
cppcheck: performing init in init list (comphelper/connectivity/cppu/cui)
Change-Id: I786c2c10e8b37b48adf6d619c0fa6a905de1bf7f
Reviewed-on: https://gerrit.libreoffice.org/83584
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/typelib/typelib.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx index c94ee1a80ec2..02ae4cc6e932 100644 --- a/cppu/source/typelib/typelib.cxx +++ b/cppu/source/typelib/typelib.cxx @@ -909,8 +909,9 @@ private: sal_Int32 members; }; -BaseList::BaseList(typelib_InterfaceTypeDescription const * desc) { - members = 0; +BaseList::BaseList(typelib_InterfaceTypeDescription const * desc) + : members(0) +{ for (sal_Int32 i = 0; i < desc->nBaseTypes; ++i) { Set directBaseSet; sal_Int32 directBaseMembers = 0; |