summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-18 15:10:41 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-09-20 06:37:36 +0000
commit99bfc363a6f6779d0be2284f85a9131254bce1f9 (patch)
tree3da30adea892bae0f5e76031d8561e114c2da8d9 /reportdesign
parente3c3b7fde3c017bd7d25f04fabf9b4528e37fb49 (diff)
convert Link<> to typed
Change-Id: I10b050dc4aae45e646761a82520caa96969bc511 Reviewed-on: https://gerrit.libreoffice.org/18700 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/inc/ReportController.hxx2
-rw-r--r--reportdesign/source/ui/report/ReportController.cxx5
2 files changed, 3 insertions, 4 deletions
diff --git a/reportdesign/source/ui/inc/ReportController.hxx b/reportdesign/source/ui/inc/ReportController.hxx
index ca891e6e02d3..e48f9ccf4f47 100644
--- a/reportdesign/source/ui/inc/ReportController.hxx
+++ b/reportdesign/source/ui/inc/ReportController.hxx
@@ -334,7 +334,7 @@ namespace rptui
public:
OReportController(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & the_context);
- DECL_LINK( EventLstHdl, VclWindowEvent* );
+ DECL_LINK_TYPED( EventLstHdl, VclWindowEvent&, void );
DECL_LINK_TYPED( OnCreateHdl, OAddFieldWindow&, void);
DECLARE_XINTERFACE( )
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index 864b5da1e4a9..c3334236dde2 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -2590,15 +2590,14 @@ sal_Int32 OReportController::getGroupPosition(const uno::Reference< report::XGro
}
-IMPL_LINK( OReportController, EventLstHdl, VclWindowEvent*, _pEvent )
+IMPL_LINK_TYPED( OReportController, EventLstHdl, VclWindowEvent&, _rEvent, void )
{
- if ( _pEvent && _pEvent->GetId() == VCLEVENT_WINDOW_CLOSE )
+ if ( _rEvent.GetId() == VCLEVENT_WINDOW_CLOSE )
{
InvalidateFeature(SID_SORTINGANDGROUPING);
InvalidateFeature(SID_FM_ADD_FIELD);
InvalidateFeature(SID_RPT_SHOWREPORTEXPLORER);
}
- return 1L;
}
void OReportController::Notify(SfxBroadcaster & /* _rBc */, SfxHint const & _rHint)