diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-02-24 23:24:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-02-24 23:24:26 +0000 |
commit | df37f7d8e82d8d0854076c3c9be64ee3a155f7bf (patch) | |
tree | 7a4e13f54c2b378386aaf89fc18d5699b7d194d9 /scripting | |
parent | 3901964b6d1fb2117cb983a7eedf80da93ba5530 (diff) |
move loop variables into least scope pos
Change-Id: I8e69e92bbfee2bf20918d041ecc6b7a3f7729fbd
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/stringresource/stringresource.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index 4be1a77c511b..6c8bb64e5e67 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -2238,8 +2238,7 @@ bool StringResourcePersistenceImpl::implWritePropertiesFile( LocaleItem* pLocale // Create sorted array of pointers to the id strings const ::rtl::OUString** pIdPtrs = new const ::rtl::OUString*[nTabSize]; - sal_Int32 i; - for( i = 0 ; i < nTabSize ; i++ ) + for(sal_Int32 i = 0 ; i < nTabSize ; i++ ) pIdPtrs[i] = NULL; for( it_index = rIndexMap.begin(); it_index != rIndexMap.end(); ++it_index ) { @@ -2248,7 +2247,7 @@ bool StringResourcePersistenceImpl::implWritePropertiesFile( LocaleItem* pLocale } // Write lines in correct order - for( i = 0 ; i < nTabSize ; i++ ) + for(sal_Int32 i = 0 ; i < nTabSize ; i++ ) { const ::rtl::OUString* pStr = pIdPtrs[i]; if( pStr != NULL ) |