summaryrefslogtreecommitdiff
path: root/rsc/source/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-02-13 12:25:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-02-13 20:02:28 +0000
commita6f9e504589aea53de0effd7fe80e7dd329020ed (patch)
treef64cb27e3572869ef1471a0ee71472cecfba6915 /rsc/source/tools
parent6444836dbd573a224142550205e89f4e5b1665ff (diff)
cppcheck: reduce the scope of the variable
Diffstat (limited to 'rsc/source/tools')
-rw-r--r--rsc/source/tools/rscdef.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/rsc/source/tools/rscdef.cxx b/rsc/source/tools/rscdef.cxx
index 71383306e982..53df93e0b7c5 100644
--- a/rsc/source/tools/rscdef.cxx
+++ b/rsc/source/tools/rscdef.cxx
@@ -1030,10 +1030,11 @@ BOOL RscFileTab::ChangeDef( const ByteString & rDefName,
{
RscDefine * pDef = FindDef( rDefName );
RscFile * pFile;
- ULONG lPos = 0;
- if( pDef ){
+ if( pDef )
+ {
pFile = GetFile( pDef->GetFileKey() );
+ ULONG lPos = 0;
if( pFile )
lPos = pFile->aDefLst.GetPos( pDef );
//Macros in den Expressions sind definiert ?