summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-08 10:11:24 +0200
committerNoel Grandin <noel@peralex.com>2015-09-09 10:06:11 +0200
commitf73144801474aa4b3d6b997ceab7fabae8bfc3e7 (patch)
tree13c96dea817c041cbca6f19ae208dfa9166cca05
parentconvert Link<> to typed (diff)
downloadcore-f73144801474aa4b3d6b997ceab7fabae8bfc3e7.tar.gz
core-f73144801474aa4b3d6b997ceab7fabae8bfc3e7.zip
convert Link<> to typed
Change-Id: I4fba6bf5b34b086a11659de3cddf46c76007a147
-rw-r--r--include/svx/svdhdl.hxx6
-rw-r--r--svx/source/svdraw/svdhdl.cxx3
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)