From 1fdd1e8f2e91e44762b2b8017125cc1ffb00d4af Mon Sep 17 00:00:00 2001 From: Arnaud Versini Date: Sun, 22 Nov 2020 16:29:04 +0100 Subject: BASIC : use initialization list in constructors. Change-Id: I651a16be0a80210504267a743b2c50474fb1cc50 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106357 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/classes/sbintern.cxx | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'basic/source/classes/sbintern.cxx') diff --git a/basic/source/classes/sbintern.cxx b/basic/source/classes/sbintern.cxx index c1366801d3be..fd72949d5466 100644 --- a/basic/source/classes/sbintern.cxx +++ b/basic/source/classes/sbintern.cxx @@ -31,19 +31,20 @@ SbiGlobals* GetSbData() } SbiGlobals::SbiGlobals() + : pInst(nullptr) + , pMod(nullptr) + , pCompMod(nullptr) // JSM + , nInst(0) + , nCode(ERRCODE_NONE) + , nLine(0) + , nCol1(0) + , nCol2(0) + , bCompilerError(false) + , bGlobalInitErr(false) + , bRunInit(false) + , bBlockCompilerError(false) + , pMSOMacroRuntimLib(nullptr) { - pInst = nullptr; - pMod = nullptr; - pCompMod = nullptr; // JSM - nInst = 0; - nCode = ERRCODE_NONE; - nLine = 0; - nCol1 = nCol2 = 0; - bCompilerError = false; - bGlobalInitErr = false; - bRunInit = false; - bBlockCompilerError = false; - pMSOMacroRuntimLib = nullptr; } SbiGlobals::~SbiGlobals() = default; -- cgit