summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-23 15:02:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-23 16:39:03 +0000
commita4dd5ff774c41d65b7a37da521261e3b8986ef2b (patch)
tree6002e884e9014981116528f0f1e793d442b7e6a7 /basic
parent5127536cf1c882541a30a6f3f19f26d94b896b65 (diff)
cppcheck: can reduce the scope of this variable
Diffstat (limited to 'basic')
-rw-r--r--basic/source/comp/dim.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/comp/dim.cxx b/basic/source/comp/dim.cxx
index 025efd19f306..88ad0f8c25f1 100644
--- a/basic/source/comp/dim.cxx
+++ b/basic/source/comp/dim.cxx
@@ -78,9 +78,9 @@ SbiSymDef* SbiParser::VarDecl( SbiDimList** ppDim, BOOL bStatic, BOOL bConst )
void SbiParser::TypeDecl( SbiSymDef& rDef, BOOL bAsNewAlreadyParsed )
{
SbxDataType eType = rDef.GetType();
- short nSize = 0;
if( bAsNewAlreadyParsed || Peek() == AS )
{
+ short nSize = 0;
if( !bAsNewAlreadyParsed )
Next();
rDef.SetDefinedAs();