summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-07 15:28:56 +0200
committerNoel Grandin <noel@peralex.com>2015-09-08 08:16:47 +0200
commit9004eeae2fc7be5868b9f5738ff335db262b40d9 (patch)
tree0882fa67045baecb70d5e38ef2d4140e74b154ad /cui
parenta7fde38aaeca29339c9371272ae34ee0b8ca31d2 (diff)
convert Link<> to typed
Change-Id: I206430e6cb32235b0ac47781fe586c3e374bfc17
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/cuifmsearch.cxx4
-rw-r--r--cui/source/inc/cuifmsearch.hxx2
2 files changed, 2 insertions, 4 deletions
diff --git a/cui/source/dialogs/cuifmsearch.cxx b/cui/source/dialogs/cuifmsearch.cxx
index 7cc2288f0937..8120707e6650 100644
--- a/cui/source/dialogs/cuifmsearch.cxx
+++ b/cui/source/dialogs/cuifmsearch.cxx
@@ -705,7 +705,7 @@ void FmSearchDialog::OnFound(const css::uno::Any& aCursorPos, sal_Int16 nFieldPo
m_pcmbSearchText->GrabFocus();
}
-IMPL_LINK(FmSearchDialog, OnSearchProgress, FmSearchProgress*, pProgress)
+IMPL_LINK_TYPED(FmSearchDialog, OnSearchProgress, const FmSearchProgress*, pProgress, void)
{
SolarMutexGuard aGuard;
// make this single method thread-safe (it's an overkill to block the whole application for this,
@@ -761,8 +761,6 @@ IMPL_LINK(FmSearchDialog, OnSearchProgress, FmSearchProgress*, pProgress)
}
m_pftRecord->SetText(OUString::number(1 + pProgress->nCurrentRecord));
-
- return 0L;
}
void FmSearchDialog::LoadParams()
diff --git a/cui/source/inc/cuifmsearch.hxx b/cui/source/inc/cuifmsearch.hxx
index f4d00a7faab6..7cca0823b96f 100644
--- a/cui/source/inc/cuifmsearch.hxx
+++ b/cui/source/inc/cuifmsearch.hxx
@@ -171,7 +171,7 @@ private:
DECL_LINK( OnContextSelection, ListBox* );
- DECL_LINK( OnSearchProgress, FmSearchProgress* );
+ DECL_LINK_TYPED( OnSearchProgress, const FmSearchProgress*, void );
DECL_LINK_TYPED( OnDelayedPaint, Timer*, void ); ///< see EnableSearchUI