[PATCH] cppcheck: remove unused variable 'bChanged'

Thomas Arnhold thomas at arnhold.org
Sun Jan 16 14:14:20 PST 2011


---
 .../dialogs/tp_Wizard_TitlesAndObjects.cxx         |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.cxx b/chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.cxx
index 1dc3a00..5e23072 100644
--- a/chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.cxx
+++ b/chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.cxx
@@ -135,8 +135,6 @@ sal_Bool TitlesAndObjectsTabPage::commitPage( ::svt::WizardTypes::CommitPageReas
 
 void TitlesAndObjectsTabPage::commitToModel()
 {
-    bool bChanged = false;
-
     m_aTimerTriggeredControllerLock.startTimer();
     uno::Reference< frame::XModel >  xModel( m_xChartModel, uno::UNO_QUERY);
 
@@ -146,13 +144,12 @@ void TitlesAndObjectsTabPage::commitToModel()
     {
         TitleDialogData aTitleOutput;
         m_apTitleResources->readFromResources( aTitleOutput );
-        bChanged = bChanged || aTitleOutput.writeDifferenceToModel( xModel, m_xCC );
+        aTitleOutput.writeDifferenceToModel( xModel, m_xCC );
         m_apTitleResources->ClearModifyFlag();
     }
 
     //commit legend changes to model
     {
-        bChanged = true;
         m_apLegendPositionResources->writeToModel( xModel );
     }
 
-- 
1.7.3.5


--------------080604050900010603030201
Content-Type: text/plain;
 name="0002-cppcheck:-reduce-scope-of-variable-'nTab'.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0="0002-cppcheck:-reduce-scope-of-variable-'nTab'.patch"



More information about the LibreOffice mailing list