diff options
-rw-r--r-- | include/svx/svdhdl.hxx | 6 | ||||
-rw-r--r-- | svx/source/svdraw/svdhdl.cxx | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/include/svx/svdhdl.hxx b/include/svx/svdhdl.hxx index ec3ef8d8e26c..1fa56414d07d 100644 --- a/include/svx/svdhdl.hxx +++ b/include/svx/svdhdl.hxx @@ -258,7 +258,7 @@ private: Color aMarkerColor; // callback link when value changed - Link<> aColorChangeHdl; + Link<SdrHdlColor*,void> aColorChangeHdl; // use luminance values only bool bUseLuminance : 1; @@ -282,7 +282,7 @@ public: void SetSize(const Size& rNew); - void SetColorChangeHdl(const Link<>& rLink) { aColorChangeHdl = rLink; } + void SetColorChangeHdl(const Link<SdrHdlColor*,void>& rLink) { aColorChangeHdl = rLink; } }; @@ -322,7 +322,7 @@ public: void Set2ndPos(const Point& rPnt); // the link called by the color handles - DECL_LINK(ColorChangeHdl, SdrHdl*); + DECL_LINK_TYPED(ColorChangeHdl, SdrHdlColor*, void); // transformation call, create gradient from this handle void FromIAOToItem(SdrObject* pObj, bool bSetItemOnObject, bool bUndo); diff --git a/svx/source/svdraw/svdhdl.cxx b/svx/source/svdraw/svdhdl.cxx index 0a4a9aaf5d42..f63d75952d85 100644 --- a/svx/source/svdraw/svdhdl.cxx +++ b/svx/source/svdraw/svdhdl.cxx @@ -1230,11 +1230,10 @@ void SdrHdlGradient::CreateB2dIAObject() } } -IMPL_LINK(SdrHdlGradient, ColorChangeHdl, SdrHdl*, /*pHdl*/) +IMPL_LINK_NOARG_TYPED(SdrHdlGradient, ColorChangeHdl, SdrHdlColor*, void) { if(GetObj()) FromIAOToItem(GetObj(), true, true); - return 0; } void SdrHdlGradient::FromIAOToItem(SdrObject* _pObj, bool bSetItemOnObject, bool bUndo) |