From 47924a46566352dd99a14163d98bd2b51cca6b0e Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Fri, 30 Aug 2013 20:58:07 +0200 Subject: Revert "-Werror=unused-but-set-variable bCategoriesApplied" This reverts commit 72e019c4e301ef93bd1be985edd037d1e2b10e28. --- xmloff/source/chart/SchXMLTableContext.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xmloff') diff --git a/xmloff/source/chart/SchXMLTableContext.cxx b/xmloff/source/chart/SchXMLTableContext.cxx index 7d79bc23f4a9..18cd73c9b1c1 100644 --- a/xmloff/source/chart/SchXMLTableContext.cxx +++ b/xmloff/source/chart/SchXMLTableContext.cxx @@ -885,6 +885,7 @@ 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 ) @@ -916,6 +917,7 @@ void SchXMLTableHelper::switchRangesFromOuterToInternalIfNecessary( if( lcl_tableOfRangeMatches( aRange, rTable.aTableNameOfFile )) { if( aLSeqIt->first.first == SCH_XML_CATEGORIES_INDEX ) + bCategoriesApplied = true; } else { @@ -928,6 +930,7 @@ void SchXMLTableHelper::switchRangesFromOuterToInternalIfNecessary( SchXMLTools::copyProperties( xOldSequenceProp, Reference< beans::XPropertySet >( xNewSequence, uno::UNO_QUERY )); aLSeqIt->second->setValues( xNewSequence ); + bCategoriesApplied = true; } else { -- cgit