summaryrefslogtreecommitdiff
path: root/svtools/source/control/inettbc.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-09 21:29:49 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-10 11:25:45 +0200
commit73d0dfd51caaa4cce8ad195fa2631f3fa00d691c (patch)
tree77926d9ab23e0fff4781725d3f9952869d1c2401 /svtools/source/control/inettbc.cxx
parent3ae4264a0db7f725abc33779ec9b11a45e17e279 (diff)
Replace IMPL_STATIC_LINK[_TYPED] with more useful variants
Change-Id: I344ba9d22adada82170d45a4cf723af6a286b883
Diffstat (limited to 'svtools/source/control/inettbc.cxx')
-rw-r--r--svtools/source/control/inettbc.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx
index 7f95b5d113cc..4977d06419bb 100644
--- a/svtools/source/control/inettbc.cxx
+++ b/svtools/source/control/inettbc.cxx
@@ -106,7 +106,7 @@ class SvtMatchContext_Impl: public salhelper::Thread
css::uno::Reference< css::ucb::XCommandProcessor > processor_;
sal_Int32 commandId_;
- DECL_STATIC_LINK( SvtMatchContext_Impl, Select_Impl, void* );
+ DECL_LINK( Select_Impl, void* );
virtual ~SvtMatchContext_Impl();
virtual void execute() SAL_OVERRIDE;
@@ -207,18 +207,18 @@ void SvtMatchContext_Impl::execute( )
// Cancellable does not discard the information gained so far, it
// inserts all collected completions into the listbox.
-IMPL_STATIC_LINK( SvtMatchContext_Impl, Select_Impl, void*, )
+IMPL_LINK_NOARG( SvtMatchContext_Impl, Select_Impl )
{
// avoid recursion through cancel button
{
- osl::MutexGuard g(pThis->mutex_);
- if (pThis->stopped_) {
+ osl::MutexGuard g(mutex_);
+ if (stopped_) {
// Completion was stopped, no display:
return 0;
}
}
- SvtURLBox* pBox = pThis->pBox;
+ SvtURLBox* pBox = this->pBox;
pBox->bAutoCompleteMode = true;
// did we filter completions which otherwise would have been valid?
@@ -228,7 +228,7 @@ IMPL_STATIC_LINK( SvtMatchContext_Impl, Select_Impl, void*, )
// insert all completed strings into the listbox
pBox->Clear();
- for(std::vector<OUString>::iterator i = pThis->aCompletions.begin(); i != pThis->aCompletions.end(); ++i)
+ for(std::vector<OUString>::iterator i = aCompletions.begin(); i != aCompletions.end(); ++i)
{
OUString sCompletion(*i);
@@ -259,19 +259,19 @@ IMPL_STATIC_LINK( SvtMatchContext_Impl, Select_Impl, void*, )
pBox->InsertEntry( sCompletion );
}
- if( !pThis->bNoSelection && !pThis->aCompletions.empty() && !bValidCompletionsFiltered )
+ if( !bNoSelection && !aCompletions.empty() && !bValidCompletionsFiltered )
{
// select the first one
OUString aTmp( pBox->GetEntry(0) );
pBox->SetText( aTmp );
- pBox->SetSelection( Selection( pThis->aText.getLength(), aTmp.getLength() ) );
+ pBox->SetSelection( Selection( aText.getLength(), aTmp.getLength() ) );
}
// transfer string lists to listbox and forget them
- pBox->pImp->aURLs = pThis->aURLs;
- pBox->pImp->aCompletions = pThis->aCompletions;
- pThis->aURLs.clear();
- pThis->aCompletions.clear();
+ pBox->pImp->aURLs = aURLs;
+ pBox->pImp->aCompletions = aCompletions;
+ aURLs.clear();
+ aCompletions.clear();
// force listbox to resize ( it may be open )
pBox->Resize();