diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-23 15:02:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-23 16:39:03 +0000 |
commit | a4dd5ff774c41d65b7a37da521261e3b8986ef2b (patch) | |
tree | 6002e884e9014981116528f0f1e793d442b7e6a7 /basic | |
parent | 5127536cf1c882541a30a6f3f19f26d94b896b65 (diff) |
cppcheck: can reduce the scope of this variable
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/dim.cxx | 2 |
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(); |