From 89b47b5eb272f26ea829dcd0fc9cd6a98160fe76 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sun, 2 Sep 2018 14:52:11 +0200 Subject: cppcheck: useInitializationList in basic Change-Id: I97fefc25076c2c163f6010745081772ee8c17712 Reviewed-on: https://gerrit.libreoffice.org/59908 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/basmgr/basmgr.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'basic/source/basmgr/basmgr.cxx') diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx index e4841ce100e9..8318466c88f1 100644 --- a/basic/source/basmgr/basmgr.cxx +++ b/basic/source/basmgr/basmgr.cxx @@ -384,12 +384,11 @@ public: BasicLibInfo::BasicLibInfo() + : aStorageName(szImbedded) + , aRelStorageName(szImbedded) + , bDoLoad(false) + , bReference(false) { - bReference = false; - bDoLoad = false; - mxScriptCont = nullptr; - aStorageName = szImbedded; - aRelStorageName = szImbedded; } BasicLibInfo* BasicLibInfo::Create( SotStorageStream& rSStream ) -- cgit