diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2014-12-20 21:09:40 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-12-21 20:18:17 +0100 |
commit | 17fc7aa3b8fcd731fb05b5e17e23ee984d166a8f (patch) | |
tree | 247985f50367083dbfd1688e66db12c230d04fc1 /scripting/source/stringresource | |
parent | be34823092ce05002be61a50d0dbf156bb5095ba (diff) |
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: I390607e002e93cf7a6babc26d9be084d9f185058
Diffstat (limited to 'scripting/source/stringresource')
-rw-r--r-- | scripting/source/stringresource/stringresource.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index cde4e730a24d..667a9008d2b6 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -543,10 +543,10 @@ void StringResourceImpl::removeLocale( const Locale& locale ) sal_Int32 nLocaleCount = m_aLocaleItemVector.size(); if( nLocaleCount > 1 ) { - LocaleItem* pFallbackItem = NULL; if( m_pCurrentLocaleItem == pRemoveItem || m_pDefaultLocaleItem == pRemoveItem ) { + LocaleItem* pFallbackItem = NULL; for( LocaleItemVectorIt it = m_aLocaleItemVector.begin(); it != m_aLocaleItemVector.end(); ++it ) { LocaleItem* pLocaleItem = *it; |