diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-02-13 12:25:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-02-13 20:02:28 +0000 |
commit | a6f9e504589aea53de0effd7fe80e7dd329020ed (patch) | |
tree | f64cb27e3572869ef1471a0ee71472cecfba6915 /rsc | |
parent | 6444836dbd573a224142550205e89f4e5b1665ff (diff) |
cppcheck: reduce the scope of the variable
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/tools/rscdef.cxx | 5 |
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 ? |