diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-07 15:28:56 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-08 08:16:47 +0200 |
commit | 9004eeae2fc7be5868b9f5738ff335db262b40d9 (patch) | |
tree | 0882fa67045baecb70d5e38ef2d4140e74b154ad /svx | |
parent | a7fde38aaeca29339c9371272ae34ee0b8ca31d2 (diff) |
convert Link<> to typed
Change-Id: I206430e6cb32235b0ac47781fe586c3e374bfc17
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/form/fmsrcimp.cxx | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/svx/source/form/fmsrcimp.cxx b/svx/source/form/fmsrcimp.cxx index 52680c18cf52..571334e3dfa4 100644 --- a/svx/source/form/fmsrcimp.cxx +++ b/svx/source/form/fmsrcimp.cxx @@ -107,9 +107,9 @@ FmRecordCountListener::FmRecordCountListener(const Reference< ::com::sun::star:: } -Link<> FmRecordCountListener::SetPropChangeHandler(const Link<>& lnk) +Link<sal_Int32,void> FmRecordCountListener::SetPropChangeHandler(const Link<sal_Int32,void>& lnk) { - Link<> lnkReturn = m_lnkWhoWantsToKnow; + Link<sal_Int32,void> lnkReturn = m_lnkWhoWantsToKnow; m_lnkWhoWantsToKnow = lnk; if (m_xListening.is()) @@ -145,8 +145,8 @@ void FmRecordCountListener::NotifyCurrentCount() if (m_lnkWhoWantsToKnow.IsSet()) { DBG_ASSERT(m_xListening.is(), "FmRecordCountListener::NotifyCurrentCount : I have no propset ... !?"); - void* pTheCount = reinterpret_cast<void*>(::comphelper::getINT32(m_xListening->getPropertyValue(FM_PROP_ROWCOUNT))); - m_lnkWhoWantsToKnow.Call(pTheCount); + sal_Int32 theCount = ::comphelper::getINT32(m_xListening->getPropertyValue(FM_PROP_ROWCOUNT)); + m_lnkWhoWantsToKnow.Call(theCount); } } @@ -1063,10 +1063,10 @@ void FmSearchEngine::SearchNextImpl() } -IMPL_LINK(FmSearchEngine, OnSearchTerminated, FmSearchThread*, /*pThread*/) +IMPL_LINK_NOARG_TYPED(FmSearchEngine, OnSearchTerminated, FmSearchThread*, void) { if (!m_aProgressHandler.IsSet()) - return 0L; + return; FmSearchProgress aProgress; try @@ -1101,21 +1101,18 @@ IMPL_LINK(FmSearchEngine, OnSearchTerminated, FmSearchThread*, /*pThread*/) m_aProgressHandler.Call(&aProgress); m_bSearchingCurrently = false; - return 0L; } -IMPL_LINK(FmSearchEngine, OnNewRecordCount, void*, pCounterAsVoid) +IMPL_LINK_TYPED(FmSearchEngine, OnNewRecordCount, sal_Int32, theCounter, void) { if (!m_aProgressHandler.IsSet()) - return 0L; + return; FmSearchProgress aProgress; - aProgress.nCurrentRecord = reinterpret_cast<sal_uIntPtr>(pCounterAsVoid); + aProgress.nCurrentRecord = theCounter; aProgress.aSearchState = FmSearchProgress::STATE_PROGRESS_COUNTING; m_aProgressHandler.Call(&aProgress); - - return 0L; } |