[Libreoffice-commits] core.git: 2 commits - chart2/source

Stephan Bergmann sbergman at redhat.com
Thu Jul 16 01:54:39 PDT 2015


 chart2/source/controller/sidebar/ChartElementsPanel.cxx |   11 ++---------
 chart2/source/controller/sidebar/ChartElementsPanel.hxx |    1 -
 2 files changed, 2 insertions(+), 10 deletions(-)

New commits:
commit 4439e5f689c8564a092cf40337ead04e1d024f03
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Jul 16 10:54:10 2015 +0200

    loplugin:vclwidgets
    
    Change-Id: I43f8530026261138585eb530b2bc83d3d9be704f

diff --git a/chart2/source/controller/sidebar/ChartElementsPanel.cxx b/chart2/source/controller/sidebar/ChartElementsPanel.cxx
index db58221..42f88db 100644
--- a/chart2/source/controller/sidebar/ChartElementsPanel.cxx
+++ b/chart2/source/controller/sidebar/ChartElementsPanel.cxx
@@ -83,7 +83,7 @@ public:
         throw (::css::uno::RuntimeException, ::std::exception) SAL_OVERRIDE;
 
 private:
-    ChartElementsPanel* mpParent;
+    VclPtr<ChartElementsPanel> mpParent;
 };
 
 ChartSidebarModifyListener::ChartSidebarModifyListener(ChartElementsPanel* pParent):
commit 9edaebe651a341bf449e366ff54830556f32292d
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Jul 16 10:52:54 2015 +0200

    Remove unused modelInvalid
    
    Change-Id: I18701b367dcca36afb8e6f28645453294881683f

diff --git a/chart2/source/controller/sidebar/ChartElementsPanel.cxx b/chart2/source/controller/sidebar/ChartElementsPanel.cxx
index e26c65a..db58221 100644
--- a/chart2/source/controller/sidebar/ChartElementsPanel.cxx
+++ b/chart2/source/controller/sidebar/ChartElementsPanel.cxx
@@ -103,9 +103,7 @@ void ChartSidebarModifyListener::modified(const css::lang::EventObject& /*rEvent
 
 void ChartSidebarModifyListener::disposing(const css::lang::EventObject& /*rEvent*/)
         throw (::css::uno::RuntimeException, ::std::exception)
-{
-    mpParent->modelInvalid();
-}
+{}
 
 ChartModel* getChartModel(css::uno::Reference<css::frame::XModel> xModel)
 {
@@ -488,11 +486,6 @@ void ChartElementsPanel::NotifyItemUpdate(
 {
 }
 
-void ChartElementsPanel::modelInvalid()
-{
-
-}
-
 IMPL_LINK(ChartElementsPanel, CheckBoxHdl, CheckBox*, pCheckBox)
 {
     bool bChecked = pCheckBox->IsChecked();
diff --git a/chart2/source/controller/sidebar/ChartElementsPanel.hxx b/chart2/source/controller/sidebar/ChartElementsPanel.hxx
index 6bf1642..51e7e49 100644
--- a/chart2/source/controller/sidebar/ChartElementsPanel.hxx
+++ b/chart2/source/controller/sidebar/ChartElementsPanel.hxx
@@ -68,7 +68,6 @@ public:
     virtual void dispose() SAL_OVERRIDE;
 
     void updateData();
-    void modelInvalid();
 
 private:
     //ui controls


More information about the Libreoffice-commits mailing list