summaryrefslogtreecommitdiff
path: root/desktop/source/splash
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-21 08:03:25 +0200
committerNoel Grandin <noel@peralex.com>2015-09-21 08:03:52 +0200
commit1e67e94f1a308ca60d4934e9fe9d5c048225ebe8 (patch)
treec3bdf0fcec6912bc84e835fe48a80ee9f9391106 /desktop/source/splash
parentc916152d8562cab868d4c522748ac30029fad179 (diff)
convert Link<> to typed
Change-Id: If3e2b00092440ebd42ae5b73ae2b0e44c3702683
Diffstat (limited to 'desktop/source/splash')
-rw-r--r--desktop/source/splash/splash.cxx9
1 files changed, 4 insertions, 5 deletions
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<SplashScreenWindow> 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<VclWindowEvent&>(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}: