diff options
Diffstat (limited to 'scripting/source/stringresource/stringresource.cxx')
-rw-r--r-- | scripting/source/stringresource/stringresource.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index a50076ffc762..2c4c2f8a785d 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -1532,11 +1532,8 @@ void StringResourcePersistenceImpl::implScanLocaleNames( const Sequence< OUStrin Locale aDefaultLocale; bool bDefaultFound = false; - sal_Int32 nCount = aContentSeq.getLength(); - const OUString* pFiles = aContentSeq.getConstArray(); - for( int i = 0 ; i < nCount ; i++ ) + for( const OUString& aCompleteName : aContentSeq ) { - OUString aCompleteName = pFiles[i]; OUString aPureName; OUString aExtension; sal_Int32 iDot = aCompleteName.lastIndexOf( '.' ); |