[Libreoffice-commits] core.git: xmloff/source

Julien Nabet serval2412 at yahoo.fr
Fri Aug 30 12:02:59 PDT 2013


 xmloff/source/chart/SchXMLTableContext.cxx |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

New commits:
commit ccf7b15c0a5776c6431fdcb0c0e2b0f3935ae3dc
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Fri Aug 30 21:02:26 2013 +0200

    -Werror=unused-but-set-variable second try
    
    Change-Id: Ia8a9f60831d089ec04127213bb9ded31aa754bf7

diff --git a/xmloff/source/chart/SchXMLTableContext.cxx b/xmloff/source/chart/SchXMLTableContext.cxx
index 18cd73c..b3189a5 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
                         {


More information about the Libreoffice-commits mailing list