From 1e67e94f1a308ca60d4934e9fe9d5c048225ebe8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 21 Sep 2015 08:03:25 +0200 Subject: convert Link<> to typed Change-Id: If3e2b00092440ebd42ae5b73ae2b0e44c3702683 --- dbaccess/source/ui/misc/ToolBoxHelper.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'dbaccess') diff --git a/dbaccess/source/ui/misc/ToolBoxHelper.cxx b/dbaccess/source/ui/misc/ToolBoxHelper.cxx index facfa7244e58..a7baf7c152d5 100644 --- a/dbaccess/source/ui/misc/ToolBoxHelper.cxx +++ b/dbaccess/source/ui/misc/ToolBoxHelper.cxx @@ -74,19 +74,17 @@ namespace dbaui m_pToolBox->SetOutStyle(aOptions.GetToolboxStyle()); } } - IMPL_LINK(OToolBoxHelper, SettingsChanged, VclWindowEvent*, _pEvt) + IMPL_LINK_TYPED(OToolBoxHelper, SettingsChanged, VclSimpleEvent&, _rEvt, void) { - if ( m_pToolBox && _pEvt && _pEvt->GetId() == VCLEVENT_APPLICATION_DATACHANGED ) + if ( m_pToolBox && _rEvt.GetId() == VCLEVENT_APPLICATION_DATACHANGED ) { - DataChangedEvent* pData = static_cast(_pEvt->GetData()); + DataChangedEvent* pData = static_cast(static_cast(_rEvt).GetData()); if ( pData && ((( pData->GetType() == DataChangedEventType::SETTINGS ) || ( pData->GetType() == DataChangedEventType::DISPLAY )) && ( pData->GetFlags() & AllSettingsFlags::STYLE ))) // check if imagelist changed checkImageList(); } - - return 0L; } void OToolBoxHelper::setToolBox(ToolBox* _pTB) { -- cgit