Skip to content
GitLab
Menu
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
62432133
Commit
62432133
authored
Apr 09, 2021
by
Vlad Zahorodnii
Browse files
const'ify Platform::findOutput()
parent
e88033f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/platform.cpp
View file @
62432133
...
...
@@ -164,12 +164,12 @@ void Platform::requestOutputsChange(KWaylandServer::OutputConfigurationInterface
config
->
setApplied
();
}
AbstractOutput
*
Platform
::
findOutput
(
int
screenId
)
AbstractOutput
*
Platform
::
findOutput
(
int
screenId
)
const
{
return
enabledOutputs
().
value
(
screenId
);
}
AbstractOutput
*
Platform
::
findOutput
(
const
QUuid
&
uuid
)
AbstractOutput
*
Platform
::
findOutput
(
const
QUuid
&
uuid
)
const
{
const
auto
outs
=
outputs
();
auto
it
=
std
::
find_if
(
outs
.
constBegin
(),
outs
.
constEnd
(),
...
...
src/platform.h
View file @
62432133
...
...
@@ -428,8 +428,8 @@ public:
virtual
Outputs
enabledOutputs
()
const
{
return
Outputs
();
}
AbstractOutput
*
findOutput
(
int
screenId
);
AbstractOutput
*
findOutput
(
const
QUuid
&
uuid
);
AbstractOutput
*
findOutput
(
int
screenId
)
const
;
AbstractOutput
*
findOutput
(
const
QUuid
&
uuid
)
const
;
/**
* A string of information to include in kwin debug output
...
...
Write
Preview
Supports
Markdown
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