summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-23 17:36:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-10-23 17:36:27 +0100
commit770535d0aae73f5889cf4c1367f022f4a25d9457 (patch)
treeb4d77f8a45e003f695bcd3ea40b0ff6aec25cfc2
parenta73b4cfcc3eb273190975b2dff1dedfe0915294f (diff)
at which point SfxBindings is no longer needed as an argument
Change-Id: I49b7418918c3159cf6cabaea2044ce9b2430d0a5
-rw-r--r--sc/source/ui/formdlg/dwfunctr.cxx3
-rw-r--r--sc/source/ui/inc/dwfunctr.hxx5
-rw-r--r--sc/source/ui/sidebar/ScPanelFactory.cxx2
3 files changed, 3 insertions, 7 deletions
diff --git a/sc/source/ui/formdlg/dwfunctr.cxx b/sc/source/ui/formdlg/dwfunctr.cxx
index 569d0f171577..935d47191f68 100644
--- a/sc/source/ui/formdlg/dwfunctr.cxx
+++ b/sc/source/ui/formdlg/dwfunctr.cxx
@@ -53,9 +53,8 @@
#*
#************************************************************************/
-ScFunctionWin::ScFunctionWin( SfxBindings* pBindingsP, vcl::Window* pParent, const ResId& rResId ) :
+ScFunctionWin::ScFunctionWin(vcl::Window* pParent, const ResId& rResId) :
vcl::Window(pParent, rResId),
- rBindings ( *pBindingsP ),
aIdle ( "sc formdlg ScFunctionWin" ),
aPrivatSplit ( VclPtr<ScPrivatSplit>::Create( this, ResId( FT_SPLIT, *rResId.GetResMgr() ) ) ),
aCatBox ( VclPtr<ListBox>::Create( this, ResId( CB_CAT, *rResId.GetResMgr() ) ) ),
diff --git a/sc/source/ui/inc/dwfunctr.hxx b/sc/source/ui/inc/dwfunctr.hxx
index b72821792051..73945d227373 100644
--- a/sc/source/ui/inc/dwfunctr.hxx
+++ b/sc/source/ui/inc/dwfunctr.hxx
@@ -35,7 +35,6 @@ class ScFunctionWin : public vcl::Window
{
private:
- SfxBindings& rBindings;
Idle aIdle;
VclPtr<ScPrivatSplit> aPrivatSplit;
VclPtr<ListBox> aCatBox;
@@ -75,9 +74,7 @@ protected:
virtual void StateChanged( StateChangedType nStateChange ) override;
public:
- ScFunctionWin( SfxBindings* pBindings,
- vcl::Window* pParent,
- const ResId& rResId );
+ ScFunctionWin(vcl::Window* pParent, const ResId& rResId);
virtual ~ScFunctionWin() override;
virtual void dispose() override;
diff --git a/sc/source/ui/sidebar/ScPanelFactory.cxx b/sc/source/ui/sidebar/ScPanelFactory.cxx
index b526c3521be3..02a060e68e8f 100644
--- a/sc/source/ui/sidebar/ScPanelFactory.cxx
+++ b/sc/source/ui/sidebar/ScPanelFactory.cxx
@@ -98,7 +98,7 @@ Reference<ui::XUIElement> SAL_CALL ScPanelFactory::createUIElement (
}
else if (rsResourceURL.endsWith("/FunctionsPanel"))
{
- pPanel = VclPtr<ScFunctionWin>::Create(pBindings, pParentWindow, ScResId(FID_FUNCTION_BOX));
+ pPanel = VclPtr<ScFunctionWin>::Create(pParentWindow, ScResId(FID_FUNCTION_BOX));
nMinimumSize = 0;
}