diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-02 18:31:00 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:50 +0200 |
commit | 7f8c23462e92cf34caddb213d1c0b60720503c8d (patch) | |
tree | 0f542d510e21d26d9fb20cc24051c4fc2a046ff3 /unotools | |
parent | 1649892a9e35ee990eed7fef1feebe79a51492ba (diff) |
cppcheck reduce scope of var in unotools/...fontcfg.cxx
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/fontcfg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx index c97f6fd505a0..3726f73e00ba 100644 --- a/unotools/source/config/fontcfg.cxx +++ b/unotools/source/config/fontcfg.cxx @@ -963,7 +963,6 @@ void FontSubstConfiguration::fillSubstVector( const com::sun::star::uno::Referen if( aAny.getValueTypeClass() == TypeClass_STRING ) { const OUString* pLine = (const OUString*)aAny.getValue(); - sal_Int32 nIndex = 0; sal_Int32 nLength = pLine->getLength(); if( nLength ) { @@ -978,6 +977,7 @@ void FontSubstConfiguration::fillSubstVector( const com::sun::star::uno::Referen rSubstVector.clear(); // optimize performance, heap fragmentation rSubstVector.reserve( nTokens ); + sal_Int32 nIndex = 0; while( nIndex != -1 ) { OUString aSubst( pLine->getToken( 0, ';', nIndex ) ); |