summaryrefslogtreecommitdiff
path: root/svx/source/sidebar/graphic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-17 16:55:41 +0200
committerNoel Grandin <noel@peralex.com>2015-04-17 17:05:46 +0200
commitcb516fafbb2a6217d9c41030217cb024ff18272e (patch)
treeaba24db02557760d36d748a5352b13efd85655ae /svx/source/sidebar/graphic
parent5df70781f3001d2f5be0343fc9daf04ab5c56719 (diff)
svx: convert new to ::Create.
Change-Id: Idbcc64e883b79081c7a6399e1aed8a6b20035f69
Diffstat (limited to 'svx/source/sidebar/graphic')
-rw-r--r--svx/source/sidebar/graphic/GraphicPropertyPanel.cxx3
-rw-r--r--svx/source/sidebar/graphic/GraphicPropertyPanel.hxx12
2 files changed, 8 insertions, 7 deletions
diff --git a/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx b/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx
index d0484166e285..81b0cac29732 100644
--- a/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx
+++ b/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx
@@ -255,7 +255,8 @@ VclPtr<vcl::Window> GraphicPropertyPanel::Create (
throw lang::IllegalArgumentException("no SfxBindings given to GraphicPropertyPanel::Create", NULL, 2);
return VclPtr<vcl::Window>(
- new GraphicPropertyPanel(
+ VclPtr<GraphicPropertyPanel>::Create(
+
pParent,
rxFrame,
pBindings),
diff --git a/svx/source/sidebar/graphic/GraphicPropertyPanel.hxx b/svx/source/sidebar/graphic/GraphicPropertyPanel.hxx
index 85b1d39c287d..c60f77793616 100644
--- a/svx/source/sidebar/graphic/GraphicPropertyPanel.hxx
+++ b/svx/source/sidebar/graphic/GraphicPropertyPanel.hxx
@@ -58,6 +58,12 @@ public:
SfxBindings* GetBindings() { return mpBindings;}
+ // constructor/destuctor
+ GraphicPropertyPanel(
+ vcl::Window* pParent,
+ const css::uno::Reference<css::frame::XFrame>& rxFrame,
+ SfxBindings* pBindings);
+
private:
//ui controls
VclPtr<MetricField> mpMtrBrightness;
@@ -96,12 +102,6 @@ private:
DECL_LINK( BlueHdl, void*);
DECL_LINK( GammaHdl, void*);
- // constructor/destuctor
- GraphicPropertyPanel(
- vcl::Window* pParent,
- const css::uno::Reference<css::frame::XFrame>& rxFrame,
- SfxBindings* pBindings);
-
void SetupIcons(void);
void Initialize();
};