[Libreoffice-commits] core.git: basic/source
Arnaud Versini (via logerrit)
logerrit at kemper.freedesktop.org
Mon Dec 28 06:29:00 UTC 2020
basic/source/comp/symtbl.cxx | 59 ++++++++++++++++++++++---------------------
1 file changed, 31 insertions(+), 28 deletions(-)
New commits:
commit 71af8fc0109051422c9a18e2f7b1a30c9658e8e5
Author: Arnaud Versini <arnaud.versini at libreoffice.org>
AuthorDate: Sun Dec 27 14:21:26 2020 +0100
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Dec 28 07:27:43 2020 +0100
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 at collabora.co.uk>
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()
More information about the Libreoffice-commits
mailing list