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
This commit is contained in:
Frederik Gladhorn 2019-08-10 12:27:19 +02:00
parent 9002f9b99e
commit ef670c3648

View file

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