diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-08-30 21:02:26 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-08-30 21:02:26 +0200 |
commit | ccf7b15c0a5776c6431fdcb0c0e2b0f3935ae3dc (patch) | |
tree | b07c644a3188f46305e7de94a54b701112769360 /xmloff | |
parent | 47924a46566352dd99a14163d98bd2b51cca6b0e (diff) |
-Werror=unused-but-set-variable second try
Change-Id: Ia8a9f60831d089ec04127213bb9ded31aa754bf7
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/chart/SchXMLTableContext.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/xmloff/source/chart/SchXMLTableContext.cxx b/xmloff/source/chart/SchXMLTableContext.cxx index 18cd73c9b1c1..b3189a5022c1 100644 --- a/xmloff/source/chart/SchXMLTableContext.cxx +++ b/xmloff/source/chart/SchXMLTableContext.cxx @@ -885,7 +885,6 @@ void SchXMLTableHelper::switchRangesFromOuterToInternalIfNecessary( const OUString lcl_aCategoriesRange(aCategoriesRange); - bool bCategoriesApplied = false; // translate ranges (using the map created before) for( tSchXMLLSequencesPerIndex::const_iterator aLSeqIt( rLSequencesPerIndex.begin()); aLSeqIt != rLSequencesPerIndex.end(); ++aLSeqIt ) @@ -914,12 +913,7 @@ void SchXMLTableHelper::switchRangesFromOuterToInternalIfNecessary( } else { - if( lcl_tableOfRangeMatches( aRange, rTable.aTableNameOfFile )) - { - if( aLSeqIt->first.first == SCH_XML_CATEGORIES_INDEX ) - bCategoriesApplied = true; - } - else + if( !lcl_tableOfRangeMatches( aRange, rTable.aTableNameOfFile )) { if( aLSeqIt->first.first == SCH_XML_CATEGORIES_INDEX ) { @@ -930,7 +924,6 @@ void SchXMLTableHelper::switchRangesFromOuterToInternalIfNecessary( SchXMLTools::copyProperties( xOldSequenceProp, Reference< beans::XPropertySet >( xNewSequence, uno::UNO_QUERY )); aLSeqIt->second->setValues( xNewSequence ); - bCategoriesApplied = true; } else { |