const'ify Platform::findOutput()
This commit is contained in:
parent
e88033f914
commit
62432133e0
2 changed files with 4 additions and 4 deletions
|
@ -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(),
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue