fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: I390607e002e93cf7a6babc26d9be084d9f185058
This commit is contained in:
committed by
Julien Nabet
parent
be34823092
commit
17fc7aa3b8
@@ -669,9 +669,9 @@ static const char aResourceResolverPropName[] = "ResourceResolver";
|
||||
uno::Reference< beans::XPropertySet > xDlgModPropSet( xCtrlMod, uno::UNO_QUERY );
|
||||
if( xDlgModPropSet.is() )
|
||||
{
|
||||
bool bDecoration = true;
|
||||
try
|
||||
{
|
||||
bool bDecoration = true;
|
||||
Any aDecorationAny = xDlgModPropSet->getPropertyValue( aDecorationPropName );
|
||||
aDecorationAny >>= bDecoration;
|
||||
if( !bDecoration )
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user