summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@libreoffice.org>2020-12-27 14:21:26 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-12-28 07:27:43 +0100
commit71af8fc0109051422c9a18e2f7b1a30c9658e8e5 (patch)
treeb8a838dde027bd1eec7fde434815aa9e234adc67 /basic
parentcc66c52faac53b682732cc184fcd64e04100dfab (diff)
BASIC : simplify SbiSymDef and SbiSymPool initlialization
Change-Id: I5e7a34330592855aae3ec57d4b90edfa376fbacf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108370 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/comp/symtbl.cxx59
1 files changed, 31 insertions, 28 deletions
diff --git a/basic/source/comp/symtbl.cxx b/basic/source/comp/symtbl.cxx
index a4e7befe94b1..d9e7fcae6abc 100644
--- a/basic/source/comp/symtbl.cxx
+++ b/basic/source/comp/symtbl.cxx
@@ -79,12 +79,14 @@ short SbiStringPool::Add( double n, SbxDataType t )
return Add( OUString::createFromAscii( buf ) );
}
-SbiSymPool::SbiSymPool( SbiStringPool& r, SbiSymScope s, SbiParser* pP ) : rStrings( r ), pParser( pP )
+SbiSymPool::SbiSymPool( SbiStringPool& r, SbiSymScope s, SbiParser* pP ) :
+ rStrings(r),
+ pParent(nullptr),
+ pParser(pP),
+ eScope(s),
+ nProcId(0),
+ nCur(0)
{
- eScope = s;
- pParent = nullptr;
- nCur =
- nProcId = 0;
}
SbiSymPool::~SbiSymPool()
@@ -247,29 +249,30 @@ void SbiSymPool::CheckRefs()
}
}
-SbiSymDef::SbiSymDef( const OUString& rName ) : aName( rName )
-{
- eType = SbxEMPTY;
- nDims = 0;
- nTypeId = 0;
- nProcId = 0;
- nId = 0;
- nPos = 0;
- nLen = 0;
- nChain = 0;
- bAs =
- bNew =
- bStatic =
- bOpt =
- bParamArray =
- bWithEvents =
- bWithBrackets =
- bByVal =
- bChained =
- bGlobal = false;
- pIn = nullptr;
- nDefaultId = 0;
- nFixedStringLength = -1;
+SbiSymDef::SbiSymDef( const OUString& rName ) :
+ aName(rName),
+ eType(SbxEMPTY),
+ pIn(nullptr),
+ nLen(0),
+ nDims(0),
+ nId(0),
+ nTypeId(0),
+ nProcId(0),
+ nPos(0),
+ nChain(0),
+ bNew(false),
+ bChained(false),
+ bByVal(false),
+ bOpt(false),
+ bStatic(false),
+ bAs(false),
+ bGlobal(false),
+ bParamArray(false),
+ bWithEvents(false),
+ bWithBrackets(false),
+ nDefaultId(0),
+ nFixedStringLength(-1)
+{
}
SbiSymDef::~SbiSymDef()