summaryrefslogtreecommitdiff
path: root/basic/source/runtime/runtime.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source/runtime/runtime.cxx')
-rw-r--r--basic/source/runtime/runtime.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index a92b12bb0f6b..b3c092b4715c 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -1092,7 +1092,8 @@ void SbiRuntime::ClearGosubStack()
SbiGosubStack* p;
while(( p = pGosubStk ) != nullptr )
{
- pGosubStk = p->pNext, delete p;
+ pGosubStk = p->pNext;
+ delete p;
}
nGosubLvl = 0;
}
@@ -2168,7 +2169,8 @@ void SbiRuntime::DimImpl( SbxVariableRef refVar )
sal_Int32 ub = pDims->Get( i++ )->GetLong();
if( ub < lb )
{
- Error( ERRCODE_BASIC_OUT_OF_RANGE ), ub = lb;
+ Error( ERRCODE_BASIC_OUT_OF_RANGE );
+ ub = lb;
}
pArray->AddDim32( lb, ub );
if ( lb != ub )
@@ -3542,7 +3544,8 @@ SbxVariable* SbiRuntime::FindElement( SbxObject* pObj, sal_uInt32 nOp1, sal_uInt
if( t != SbxVARIANT && t != t2 &&
t >= SbxINTEGER && t <= SbxSTRING )
{
- pElem->SetType( t ), bSet = true;
+ pElem->SetType( t );
+ bSet = true;
}
}
// assign pElem to a Ref, to delete a temp-var if applicable