summaryrefslogtreecommitdiff
path: root/sfx2/source/appl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-27 13:08:02 +0200
committerNoel Grandin <noel@peralex.com>2015-08-28 09:49:56 +0200
commitbd8b93fdff93ff7b2b7e493a7bcef6a59f299dae (patch)
treef05be9665737f0667faf95702d96fbf3f0a103c5 /sfx2/source/appl
parent1b9c3a17e8496aedfb80528c5275e6658154789d (diff)
make PostUserEvent Link<> typed
Change-Id: I13f10bda985d55d419a5bff481130a456ae2db8a
Diffstat (limited to 'sfx2/source/appl')
-rw-r--r--sfx2/source/appl/fileobj.cxx4
-rw-r--r--sfx2/source/appl/fileobj.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/appl/fileobj.cxx b/sfx2/source/appl/fileobj.cxx
index d1e3032d577a..a70005105749 100644
--- a/sfx2/source/appl/fileobj.cxx
+++ b/sfx2/source/appl/fileobj.cxx
@@ -497,13 +497,13 @@ IMPL_LINK_NOARG( SvFileObject, LoadGrfReady_Impl )
return 0;
}
-IMPL_LINK( SvFileObject, DelMedium_Impl, SfxMediumRef*, deleteMedium )
+IMPL_LINK_TYPED( SvFileObject, DelMedium_Impl, void*, p, void )
{
+ SfxMediumRef* deleteMedium = static_cast<SfxMediumRef*>(p);
nPostUserEventId = 0;
assert(pDelMed == deleteMedium);
pDelMed = NULL;
delete deleteMedium;
- return 0;
}
IMPL_LINK_TYPED( SvFileObject, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg, void )
diff --git a/sfx2/source/appl/fileobj.hxx b/sfx2/source/appl/fileobj.hxx
index 8e24f0ff1363..6bdc7a15a526 100644
--- a/sfx2/source/appl/fileobj.hxx
+++ b/sfx2/source/appl/fileobj.hxx
@@ -54,7 +54,7 @@ class SvFileObject : public sfx2::SvLinkSource
bool LoadFile_Impl();
void SendStateChg_Impl( sfx2::LinkManager::LinkState nState );
- DECL_LINK( DelMedium_Impl, SfxMediumRef* );
+ DECL_LINK_TYPED( DelMedium_Impl, void*, void );
DECL_LINK( LoadGrfReady_Impl, void* );
DECL_LINK_TYPED( DialogClosedHdl, sfx2::FileDialogHelper*, void );