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

Stephan Bergmann sbergman at redhat.com
Mon Jul 13 00:22:15 PDT 2015


 chart2/source/controller/main/ChartController.cxx       |    4 +---
 chart2/source/controller/main/ChartController.hxx       |    2 +-
 chart2/source/controller/sidebar/ChartElementsPanel.cxx |    6 ------
 chart2/source/controller/sidebar/ChartElementsPanel.hxx |    2 --
 4 files changed, 2 insertions(+), 12 deletions(-)

New commits:
commit 5b16fff9ac2aaf45301f5397ed241722392af06b
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Jul 13 09:21:34 2015 +0200

    loplugin:staticmethods
    
    Change-Id: I8b57b7ce707438ad3c7c901b03c94d9045585ed8

diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index 3175eea..d548ba3 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -73,8 +73,6 @@
 #include <com/sun/star/frame/XLayoutManager.hpp>
 #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
 
-#include <boost/bind.hpp>
-
 // this is needed to properly destroy the unique_ptr to the AcceleratorExecute
 // object in the DTOR
 #include <svtools/acceleratorexecute.hxx>
@@ -116,7 +114,7 @@ ChartController::ChartController(uno::Reference<uno::XComponentContext> const &
     m_aDispatchContainer( m_xCC, this ),
     m_eDrawMode( CHARTDRAW_SELECT ),
     mpSelectionChangeHandler(new svx::sidebar::SelectionChangeHandler(
-                boost::bind(&ChartController::GetContextName, this), this,
+                &ChartController::GetContextName, this,
                 sfx2::sidebar::EnumContext::Context_Cell))
 {
     m_aDoubleClickTimer.SetTimeoutHdl( LINK( this, ChartController, DoubleClickWaitingHdl ) );
diff --git a/chart2/source/controller/main/ChartController.hxx b/chart2/source/controller/main/ChartController.hxx
index 00d297b..e15f8c6 100644
--- a/chart2/source/controller/main/ChartController.hxx
+++ b/chart2/source/controller/main/ChartController.hxx
@@ -153,7 +153,7 @@ public:
                ::com::sun::star::uno::XComponentContext > const & xContext);
     virtual ~ChartController();
 
-    OUString GetContextName();
+    static OUString GetContextName();
 
     // ::com::sun::star::lang::XServiceInfo
     virtual OUString SAL_CALL getImplementationName()
diff --git a/chart2/source/controller/sidebar/ChartElementsPanel.cxx b/chart2/source/controller/sidebar/ChartElementsPanel.cxx
index a9dcaf0a..3434217 100644
--- a/chart2/source/controller/sidebar/ChartElementsPanel.cxx
+++ b/chart2/source/controller/sidebar/ChartElementsPanel.cxx
@@ -63,8 +63,6 @@ ChartElementsPanel::ChartElementsPanel(
     get(mpCBGridHorizontal,  "checkbutton_gridline_horizontal");
     get(mpCBShowLabel,  "checkbutton_label");
     get(mpCBTrendline,  "checkbutton_trendline");
-
-    Initialize();
 }
 
 ChartElementsPanel::~ChartElementsPanel()
@@ -95,10 +93,6 @@ void ChartElementsPanel::dispose()
     PanelLayout::dispose();
 }
 
-void ChartElementsPanel::Initialize()
-{
-}
-
 VclPtr<vcl::Window> ChartElementsPanel::Create (
     vcl::Window* pParent,
     const css::uno::Reference<css::frame::XFrame>& rxFrame,
diff --git a/chart2/source/controller/sidebar/ChartElementsPanel.hxx b/chart2/source/controller/sidebar/ChartElementsPanel.hxx
index f07ab66..f23fa1a 100644
--- a/chart2/source/controller/sidebar/ChartElementsPanel.hxx
+++ b/chart2/source/controller/sidebar/ChartElementsPanel.hxx
@@ -88,8 +88,6 @@ private:
     css::uno::Reference<css::frame::XFrame> mxFrame;
     ::sfx2::sidebar::EnumContext            maContext;
     SfxBindings*                            mpBindings;
-
-    void Initialize();
 };
 
 } } // end of namespace ::chart::sidebar


More information about the Libreoffice-commits mailing list