summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2016-04-30 14:41:09 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-05-01 09:46:58 +0000
commitb0388ef109a70c51566153a1456c52276ac84906 (patch)
tree2fa49cdd8d94d90a3bca79d53db09111ecea1fee /basic
parentd15163eceb2f97cfc87975acfcb7b0a6e0ea54fe (diff)
Fix typo in code
Change-Id: Ib1daf257018d5a5da90773dd39086f18666fea9f Reviewed-on: https://gerrit.libreoffice.org/24533 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/comp/dim.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/basic/source/comp/dim.cxx b/basic/source/comp/dim.cxx
index 28b7e6e3e6e3..8d7ca38c0c75 100644
--- a/basic/source/comp/dim.cxx
+++ b/basic/source/comp/dim.cxx
@@ -204,7 +204,7 @@ void SbiParser::DefVar( SbiOpcode eOp, bool bStatic )
{
SbiSymPool* pOldPool = pPool;
bool bSwitchPool = false;
- bool bPersistantGlobal = false;
+ bool bPersistentGlobal = false;
SbiToken eFirstTok = eCurTok;
if( pProc && ( eCurTok == GLOBAL || eCurTok == PUBLIC || eCurTok == PRIVATE ) )
@@ -213,12 +213,12 @@ void SbiParser::DefVar( SbiOpcode eOp, bool bStatic )
{
bSwitchPool = true; // at the right moment switch to the global pool
if( eCurTok == GLOBAL )
- bPersistantGlobal = true;
+ bPersistentGlobal = true;
}
// behavior in VBA is that a module scope variable's lifetime is
// tied to the document. e.g. a module scope variable is global
if( GetBasic()->IsDocBasic() && bVBASupportOn && !pProc )
- bPersistantGlobal = true;
+ bPersistentGlobal = true;
// PRIVATE is a synonymous for DIM
// _CONST_?
bool bConst = false;
@@ -366,9 +366,9 @@ void SbiParser::DefVar( SbiOpcode eOp, bool bStatic )
SbiOpcode eOp2;
switch ( pDef->GetScope() )
{
- case SbGLOBAL: eOp2 = bPersistantGlobal ? SbiOpcode::GLOBAL_P_ : SbiOpcode::GLOBAL_;
+ case SbGLOBAL: eOp2 = bPersistentGlobal ? SbiOpcode::GLOBAL_P_ : SbiOpcode::GLOBAL_;
goto global;
- case SbPUBLIC: eOp2 = bPersistantGlobal ? SbiOpcode::PUBLIC_P_ : SbiOpcode::PUBLIC_;
+ case SbPUBLIC: eOp2 = bPersistentGlobal ? SbiOpcode::PUBLIC_P_ : SbiOpcode::PUBLIC_;
// #40689, no own Opcode anymore
if( bVBASupportOn && bStatic )
{
@@ -509,7 +509,7 @@ void SbiParser::DefVar( SbiOpcode eOp, bool bStatic )
aGen.Gen( SbiOpcode::REDIMP_ERASE_ );
}
pDef->SetDims( pDim->GetDims() );
- if( bPersistantGlobal )
+ if( bPersistentGlobal )
pDef->SetGlobal( true );
SbiExpression aExpr( this, *pDef, std::move(pDim) );
aExpr.Gen();