summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-07-13 09:21:34 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-07-13 09:21:51 +0200
commit5b16fff9ac2aaf45301f5397ed241722392af06b (patch)
tree6dbd6d5fc8dcba9eb7d85943d30ba6648be4de43 /chart2
parent2970ec843820a72d73a91cc11fc353e5b9fde5fd (diff)
loplugin:staticmethods
Change-Id: I8b57b7ce707438ad3c7c901b03c94d9045585ed8
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ChartController.cxx4
-rw-r--r--chart2/source/controller/main/ChartController.hxx2
-rw-r--r--chart2/source/controller/sidebar/ChartElementsPanel.cxx6
-rw-r--r--chart2/source/controller/sidebar/ChartElementsPanel.hxx2
4 files changed, 2 insertions, 12 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index 3175eea6a11e..d548ba39295d 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 00d297bd62cc..e15f8c6e5658 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 a9dcaf0af193..343421702a0d 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 f07ab6658433..f23fa1a55dc7 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