Fix ifdefs resulting in dead code

Summary:
Use #else, otherwise there are two return statements after each other
which doesn't make sense.

Reviewers: #kwin, romangg

Reviewed By: #kwin, romangg

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D23068
icc-effect-5.17.5
Frederik Gladhorn 2019-08-10 12:27:19 +02:00
parent 9002f9b99e
commit ef670c3648
1 changed files with 4 additions and 2 deletions

View File

@ -1190,16 +1190,18 @@ QList< int > EffectsHandlerImpl::currentTabBoxDesktopList() const
{
#ifdef KWIN_BUILD_TABBOX
return TabBox::TabBox::self()->currentDesktopList();
#endif
#else
return QList< int >();
#endif
}
int EffectsHandlerImpl::currentTabBoxDesktop() const
{
#ifdef KWIN_BUILD_TABBOX
return TabBox::TabBox::self()->currentDesktop();
#endif
#else
return -1;
#endif
}
EffectWindow* EffectsHandlerImpl::currentTabBoxWindow() const