Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
667177d6
Commit
667177d6
authored
Jan 15, 2021
by
Andreas Hartmetz
Browse files
Prevent unused variable warnings when building for tests
parent
870a9e4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
screens.cpp
View file @
667177d6
...
...
@@ -261,6 +261,7 @@ int Screens::number(const QPoint &pos) const
// TODO: Do something about testScreens and other tests that use MockScreens.
// They only make core code more convoluted with ifdefs.
#ifdef KWIN_UNIT_TEST
Q_UNUSED
(
pos
)
return
-
1
;
#else
int
bestScreen
=
0
;
...
...
@@ -289,6 +290,7 @@ AbstractOutput *Screens::findOutput(int screen) const
// TODO: Do something about testScreens and other tests that use MockScreens.
// They only make core code more convoluted with ifdefs.
#ifdef KWIN_UNIT_TEST
Q_UNUSED
(
screen
)
return
nullptr
;
#else
return
kwinApp
()
->
platform
()
->
findOutput
(
screen
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment