From 4e1ae2a9a0d2d9185b49677fa4ea2a2b1fe8bab2 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 23 Nov 2019 20:25:07 +0100 Subject: cppcheck: performing init in init list (comphelper/connectivity/cppu/cui) Change-Id: I786c2c10e8b37b48adf6d619c0fa6a905de1bf7f Reviewed-on: https://gerrit.libreoffice.org/83584 Reviewed-by: Julien Nabet Tested-by: Julien Nabet --- cppu/source/typelib/typelib.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cppu/source') 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; -- cgit