summaryrefslogtreecommitdiff
path: root/svx/source/engine3d
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-15 08:13:49 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-10-16 09:11:29 +0000
commit6f1313b3d44ea54e9a331e0fc00871081fa662fe (patch)
treefa6d9b6da04daedcb63ea2a0bc8c414288ed8bc6 /svx/source/engine3d
parent14bf708ef586b15dffed66ffaf524baf4d8fcbfa (diff)
convert Link<> to typed
Change-Id: Icbba339dac0be31e30dff021bba06a219f8aecd6 Reviewed-on: https://gerrit.libreoffice.org/19405 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/engine3d')
-rw-r--r--svx/source/engine3d/float3d.cxx48
1 files changed, 22 insertions, 26 deletions
diff --git a/svx/source/engine3d/float3d.cxx b/svx/source/engine3d/float3d.cxx
index 549e4fc6330a..d22ed7d48b42 100644
--- a/svx/source/engine3d/float3d.cxx
+++ b/svx/source/engine3d/float3d.cxx
@@ -290,7 +290,7 @@ Svx3DWin::Svx3DWin(SfxBindings* pInBindings, SfxChildWindow *pCW, vcl::Window* p
m_pLbAmbientlight->SetSelectHdl( aLink2 );
m_pLbShademode->SetSelectHdl( aLink2 );
- Link<> aLink3 = LINK( this, Svx3DWin, ModifyHdl );
+ Link<Edit&,void> aLink3 = LINK( this, Svx3DWin, ModifyHdl );
m_pMtrMatSpecularIntensity->SetModifyHdl( aLink3 );
m_pNumHorizontal->SetModifyHdl( aLink3 );
m_pNumVertical->SetModifyHdl( aLink3 );
@@ -2567,34 +2567,30 @@ IMPL_LINK_TYPED( Svx3DWin, SelectHdl, ListBox&, rListBox, void )
}
-IMPL_LINK( Svx3DWin, ModifyHdl, void*, pField )
+IMPL_LINK_TYPED( Svx3DWin, ModifyHdl, Edit&, rField, void )
{
- if( pField )
- {
- bool bUpdatePreview = false;
-
- // Material
- if( pField == m_pMtrMatSpecularIntensity )
- {
- bUpdatePreview = true;
- }
- else if (pField == m_pNumHorizontal)
- {
- bUpdatePreview = true;
- }
- else if (pField == m_pNumVertical)
- {
- bUpdatePreview = true;
- }
- else if (pField == m_pMtrSlant)
- {
- bUpdatePreview = true;
- }
+ bool bUpdatePreview = false;
- if( bUpdatePreview )
- UpdatePreview();
+ // Material
+ if( &rField == m_pMtrMatSpecularIntensity )
+ {
+ bUpdatePreview = true;
+ }
+ else if (&rField == m_pNumHorizontal)
+ {
+ bUpdatePreview = true;
+ }
+ else if (&rField == m_pNumVertical)
+ {
+ bUpdatePreview = true;
+ }
+ else if (&rField == m_pMtrSlant)
+ {
+ bUpdatePreview = true;
}
- return 0L;
+
+ if( bUpdatePreview )
+ UpdatePreview();
}