summaryrefslogtreecommitdiff
path: root/basic/source
diff options
context:
space:
mode:
authorMichaël Lefèvre <lefevre00@yahoo.fr>2015-03-12 20:57:33 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-12 22:28:38 +0000
commitc3cd1005568469dc2514627c76378c2f84da2b0d (patch)
tree5457b8cda8b2afeea297e551ce45b3bb80985e98 /basic/source
parent6d15c85759d25807cf88561ac3d05cae5f15a169 (diff)
CppCheck cleanlyness : reduce variable's scope
Change-Id: I5bd18b1a93f7197121eb42f6b82d2d8d87e7671f Reviewed-on: https://gerrit.libreoffice.org/14843 Tested-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'basic/source')
-rw-r--r--basic/source/comp/dim.cxx4
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 )