summaryrefslogtreecommitdiff
path: root/scripting/source/stringresource/stringresource.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/source/stringresource/stringresource.cxx')
-rw-r--r--scripting/source/stringresource/stringresource.cxx5
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 )