diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-27 13:08:02 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-28 09:49:56 +0200 |
commit | bd8b93fdff93ff7b2b7e493a7bcef6a59f299dae (patch) | |
tree | f05be9665737f0667faf95702d96fbf3f0a103c5 /sd/source/ui/sidebar/MasterPageContainer.cxx | |
parent | 1b9c3a17e8496aedfb80528c5275e6658154789d (diff) |
make PostUserEvent Link<> typed
Change-Id: I13f10bda985d55d419a5bff481130a456ae2db8a
Diffstat (limited to 'sd/source/ui/sidebar/MasterPageContainer.cxx')
-rw-r--r-- | sd/source/ui/sidebar/MasterPageContainer.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sd/source/ui/sidebar/MasterPageContainer.cxx b/sd/source/ui/sidebar/MasterPageContainer.cxx index 393774a334f9..82ad5b50c774 100644 --- a/sd/source/ui/sidebar/MasterPageContainer.cxx +++ b/sd/source/ui/sidebar/MasterPageContainer.cxx @@ -171,7 +171,7 @@ private: bool mbContainerCleaningPending; typedef ::std::pair<MasterPageContainerChangeEvent::EventType,Token> EventData; - DECL_LINK(AsynchronousNotifyCallback, EventData*); + DECL_LINK_TYPED(AsynchronousNotifyCallback, void*, void); Image GetPreviewSubstitution (sal_uInt16 nId, PreviewSize ePreviewSize); @@ -618,8 +618,9 @@ Size MasterPageContainer::Implementation::GetPreviewSizePixel (PreviewSize eSize return maLargePreviewSizePixel; } -IMPL_LINK(MasterPageContainer::Implementation,AsynchronousNotifyCallback, EventData*, pData) +IMPL_LINK_TYPED(MasterPageContainer::Implementation,AsynchronousNotifyCallback, void*, p, void) { + EventData* pData = static_cast<EventData*>(p); const ::osl::MutexGuard aGuard (maMutex); if (pData != NULL) @@ -627,8 +628,6 @@ IMPL_LINK(MasterPageContainer::Implementation,AsynchronousNotifyCallback, EventD FireContainerChange(pData->first, pData->second); delete pData; } - - return 0; } MasterPageContainer::Token MasterPageContainer::Implementation::PutMasterPage ( |