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 --- desktop/source/splash/splash.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'desktop') diff --git a/desktop/source/splash/splash.cxx b/desktop/source/splash/splash.cxx index 17f07dd621be..7d57c0eb93a5 100644 --- a/desktop/source/splash/splash.cxx +++ b/desktop/source/splash/splash.cxx @@ -72,7 +72,7 @@ private: VclPtr pWindow; - DECL_LINK( AppEventListenerHdl, VclWindowEvent * ); + DECL_LINK_TYPED( AppEventListenerHdl, VclSimpleEvent&, void ); virtual ~SplashScreen(); void loadConfig(); void updateStatus(); @@ -366,11 +366,11 @@ void SplashScreen::updateStatus() } // internal private methods -IMPL_LINK( SplashScreen, AppEventListenerHdl, VclWindowEvent *, inEvent ) +IMPL_LINK_TYPED( SplashScreen, AppEventListenerHdl, VclSimpleEvent&, inEvent, void ) { - if (inEvent != 0 && inEvent->GetWindow() == pWindow) + if (static_cast(inEvent).GetWindow() == pWindow) { - switch ( inEvent->GetId() ) + switch ( inEvent.GetId() ) { case VCLEVENT_WINDOW_SHOW: pWindow->Redraw(); @@ -379,7 +379,6 @@ IMPL_LINK( SplashScreen, AppEventListenerHdl, VclWindowEvent *, inEvent ) break; } } - return 0; } // Read keys from soffice{.ini|rc}: -- cgit tion> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2018-05-15weld WPFTEncodingDialogCaolán McNamara
2018-04-20writerperfect: astyle -> clang-formatMiklos Vajna
2017-12-11loplugin:salcall fix functionsNoel Grandin