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:
parent
9002f9b99e
commit
ef670c3648
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue