diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-13 11:10:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-14 09:30:20 +0200 |
commit | b4da5037e0cc2952446b2138d515e0c762172b25 (patch) | |
tree | 061c81fb860f5552ce18051d7eb86f4f5324da61 /svx | |
parent | 73ceffe5c247dcffa7653e043530e58e4eb73fdf (diff) |
convert Link<> to typed
Change-Id: I1876f327607e0e23292950741df348d4ec31fde1
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/gallery2/galbrws1.cxx | 10 | ||||
-rw-r--r-- | svx/source/gallery2/galbrws1.hxx | 4 |
2 files changed, 6 insertions, 8 deletions
diff --git a/svx/source/gallery2/galbrws1.cxx b/svx/source/gallery2/galbrws1.cxx index beebfd6b2ef1..b5245fb1129e 100644 --- a/svx/source/gallery2/galbrws1.cxx +++ b/svx/source/gallery2/galbrws1.cxx @@ -327,16 +327,14 @@ void GalleryBrowser1::ImplEndGalleryThemeProperties( VclAbstractDialog2* pDialog Application::PostUserEvent( LINK( this, GalleryBrowser1, DestroyThemePropertiesDlgHdl ), pDialog, true ); } -IMPL_LINK( GalleryBrowser1, EndNewThemePropertiesDlgHdl, VclAbstractDialog2*, pDialog ) +IMPL_LINK_TYPED( GalleryBrowser1, EndNewThemePropertiesDlgHdl, Dialog&, rDialog, void ) { - ImplEndGalleryThemeProperties( pDialog, true ); - return 0L; + ImplEndGalleryThemeProperties( dynamic_cast<VclAbstractDialog2*>(&rDialog), true ); } -IMPL_LINK( GalleryBrowser1, EndThemePropertiesDlgHdl, VclAbstractDialog2*, pDialog ) +IMPL_LINK_TYPED( GalleryBrowser1, EndThemePropertiesDlgHdl, Dialog&, rDialog, void ) { - ImplEndGalleryThemeProperties( pDialog, false ); - return 0L; + ImplEndGalleryThemeProperties( dynamic_cast<VclAbstractDialog2*>(&rDialog), false ); } IMPL_LINK_TYPED( GalleryBrowser1, DestroyThemePropertiesDlgHdl, void*, p, void ) diff --git a/svx/source/gallery2/galbrws1.hxx b/svx/source/gallery2/galbrws1.hxx index a5ffa518e0ac..c3c3f74b2cd0 100644 --- a/svx/source/gallery2/galbrws1.hxx +++ b/svx/source/gallery2/galbrws1.hxx @@ -113,8 +113,8 @@ private: DECL_LINK_TYPED( SelectThemeHdl, ListBox&, void ); DECL_LINK_TYPED( ShowContextMenuHdl, void*, void ); DECL_LINK_TYPED( PopupMenuHdl, Menu*, bool ); - DECL_LINK( EndNewThemePropertiesDlgHdl, VclAbstractDialog2* ); - DECL_LINK( EndThemePropertiesDlgHdl, VclAbstractDialog2* ); + DECL_LINK_TYPED( EndNewThemePropertiesDlgHdl, Dialog&, void ); + DECL_LINK_TYPED( EndThemePropertiesDlgHdl, Dialog&, void ); DECL_LINK_TYPED( DestroyThemePropertiesDlgHdl, void*, void ); public: |