Kaydet (Commit) d1577ee1 authored tarafından Tobias Madl's avatar Tobias Madl

priorities: prevent future compatibility problems

Change-Id: I735bac570a0bed35d9ddc07e5f107fb696b49082
üst 861e7853
......@@ -118,12 +118,12 @@ void SAL_CALL ShellStackGuard::disposing (
}
}
IMPL_LINK(ShellStackGuard, TimeoutHandler, Timer*, pTimer)
IMPL_LINK(ShellStackGuard, TimeoutHandler, Idle*, pIdle)
{
#ifdef DEBUG
OSL_ASSERT(pTimer==&maPrinterPollingIdle);
OSL_ASSERT(pIdle==&maPrinterPollingIdle);
#else
(void)pTimer;
(void)pIdle;
#endif
if (mpUpdateLock.get() != NULL)
{
......
......@@ -86,7 +86,7 @@ private:
::boost::scoped_ptr<ConfigurationController::Lock> mpUpdateLock;
Idle maPrinterPollingIdle;
DECL_LINK(TimeoutHandler, Timer*);
DECL_LINK(TimeoutHandler, Idle*);
/** Return <TRUE/> when the printer is printing. Return <FALSE/> when
the printer is not printing, or there is no printer, or something
......
......@@ -538,7 +538,7 @@ IndexTabPage_Impl::IndexTabPage_Impl(vcl::Window* pParent, SfxHelpIndexWindow_Im
m_pOpenBtn->SetClickHdl( LINK( this, IndexTabPage_Impl, OpenHdl ) );
Link aTimeoutLink = LINK( this, IndexTabPage_Impl, TimeoutHdl );
aFactoryIdle.SetIdleHdl( aTimeoutLink );
aFactoryIdle.SetIdleHdl( LINK(this, IndexTabPage_Impl, IdleHdl ));
aFactoryIdle.SetPriority(VCL_IDLE_PRIORITY_LOWER);
aKeywordTimer.SetTimeoutHdl( aTimeoutLink );
}
......@@ -708,12 +708,17 @@ IMPL_LINK_NOARG(IndexTabPage_Impl, OpenHdl)
return 0;
}
IMPL_LINK( IndexTabPage_Impl, TimeoutHdl, Timer*, pTimer )
IMPL_LINK( IndexTabPage_Impl, IdleHdl, Idle*, pIdle )
{
if ( &aFactoryIdle == pTimer )
if ( &aFactoryIdle == pIdle )
InitializeIndex();
else if ( &aKeywordTimer == pTimer && !sKeyword.isEmpty() )
aKeywordLink.Call( this );
return 0;
}
IMPL_LINK( IndexTabPage_Impl, TimeoutHdl, Timer*, pTimer)
{
if(&aKeywordTimer == pTimer && !sKeyword.isEmpty())
aKeywordLink.Call(this);
return 0;
}
......
......@@ -134,7 +134,8 @@ private:
void ClearIndex();
DECL_LINK(OpenHdl, void *);
DECL_LINK( TimeoutHdl, Timer* );
DECL_LINK(IdleHdl, Idle* );
DECL_LINK(TimeoutHdl, Timer*);
public:
IndexTabPage_Impl( vcl::Window* pParent, SfxHelpIndexWindow_Impl* _pIdxWin );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment