summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-09-22 15:31:53 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-09-22 18:56:53 +0000
commit0554e83ca9968e2301934bb2f420c9b9faee5681 (patch)
tree0a71da3db6dbeb540d1275e2925a09bc8e47a022 /svx
parentf378e1748f0645481a8b2deebd7bb2b34797aff7 (diff)
convert Link<> to typed
Change-Id: I285d7093f4d9db4a511fbf236f493cc4199ce534 Reviewed-on: https://gerrit.libreoffice.org/18775 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/gallery2/galtheme.cxx4
-rw-r--r--svx/source/unogallery/unogaltheme.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx
index 315449fc1f1f..4e9732992309 100644
--- a/svx/source/gallery2/galtheme.cxx
+++ b/svx/source/gallery2/galtheme.cxx
@@ -509,7 +509,7 @@ bool GalleryTheme::ChangeObjectPos( size_t nOldPos, size_t nNewPos )
return true;
}
-void GalleryTheme::Actualize( const Link<>& rActualizeLink, GalleryProgress* pProgress )
+void GalleryTheme::Actualize( const Link<const INetURLObject&, void>& rActualizeLink, GalleryProgress* pProgress )
{
if( !IsReadOnly() )
{
@@ -534,7 +534,7 @@ void GalleryTheme::Actualize( const Link<>& rActualizeLink, GalleryProgress* pPr
const INetURLObject aURL( pEntry->aURL );
- rActualizeLink.Call( const_cast<INetURLObject *>(&aURL) );
+ rActualizeLink.Call( aURL );
// SvDraw objects will be updated later
if( pEntry->eObjKind != SGA_OBJ_SVDRAW )
diff --git a/svx/source/unogallery/unogaltheme.cxx b/svx/source/unogallery/unogaltheme.cxx
index edbd37fd4c7e..c15c8cbd20de 100644
--- a/svx/source/unogallery/unogaltheme.cxx
+++ b/svx/source/unogallery/unogaltheme.cxx
@@ -206,7 +206,7 @@ void SAL_CALL GalleryTheme::update( )
if( mpTheme )
{
- const Link<> aDummyLink;
+ const Link<const INetURLObject&, void> aDummyLink;
mpTheme->Actualize( aDummyLink );
}
}