[Libreoffice-commits] .: rsc/source
Caolán McNamara
caolan at kemper.freedesktop.org
Sun Feb 13 13:21:07 PST 2011
rsc/source/tools/rscdef.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 45c1171b653c7bf936a5815229795eab1ac50b5e
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Feb 13 12:25:05 2011 +0000
cppcheck: reduce the scope of the variable
diff --git a/rsc/source/tools/rscdef.cxx b/rsc/source/tools/rscdef.cxx
index 69f6348..0eb7849 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 ?
More information about the Libreoffice-commits
mailing list