Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
KWin
Commits
667177d6
Commit
667177d6
authored
Jan 15, 2021
by
Andreas Hartmetz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent unused variable warnings when building for tests
parent
870a9e4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
screens.cpp
screens.cpp
+2
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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