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
libkscreen
Commits
2c1e09a9
Commit
2c1e09a9
authored
Oct 23, 2020
by
Aleix Pol Gonzalez
🐧
Committed by
Aleix Pol Gonzalez
Oct 29, 2020
Browse files
Proper variable scope
parent
eac43163
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/output.cpp
View file @
2c1e09a9
...
...
@@ -332,12 +332,12 @@ QString Output::preferredModeId() const
return
d
->
biggestMode
(
modes
());
}
int
area
,
total
=
0
;
int
total
=
0
;
KScreen
::
ModePtr
biggest
;
KScreen
::
ModePtr
candidateMode
;
Q_FOREACH
(
const
QString
&
modeId
,
d
->
preferredModes
)
{
candidateMode
=
mode
(
modeId
);
area
=
candidateMode
->
size
().
width
()
*
candidateMode
->
size
().
height
();
const
int
area
=
candidateMode
->
size
().
width
()
*
candidateMode
->
size
().
height
();
if
(
area
<
total
)
{
continue
;
}
...
...
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