diff options
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/comp/dim.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/basic/source/comp/dim.cxx b/basic/source/comp/dim.cxx index 8a1e9ae9f16e..27ebb4d6ec29 100644 --- a/basic/source/comp/dim.cxx +++ b/basic/source/comp/dim.cxx @@ -737,8 +737,6 @@ void SbiParser::DefEnum( bool bPrivate ) default: { // TODO: Check existing! - bool bDefined = false; - pDim = NULL; pElem = VarDecl( &pDim, false, true ); if( !pElem ) @@ -760,7 +758,7 @@ void SbiParser::DefEnum( bool bPrivate ) Next(); SbiConstExpression aExpr( this ); - if( !bDefined && aExpr.IsValid() ) + if( aExpr.IsValid() ) { SbxVariableRef xConvertVar = new SbxVariable(); if( aExpr.GetType() == SbxSTRING ) |