Fix minor issues in XdgShellClient::updateClientOutputs

Fix minor coding style issues and drop redundant qAsConst (const
containers don't detach).
This commit is contained in:
Vlad Zahorodnii 2020-01-29 13:01:45 +02:00
parent 35fe3cb6c5
commit c43b25bd55

View file

@ -1969,11 +1969,11 @@ void XdgShellClient::popupDone()
void XdgShellClient::updateClientOutputs()
{
QVector<OutputInterface*> clientOutputs;
QVector<OutputInterface *> clientOutputs;
const auto outputs = waylandServer()->display()->outputs();
for (OutputInterface* output: qAsConst(outputs)) {
const QRect outputGeom(output->globalPosition(), output->pixelSize() / output->scale());
if (frameGeometry().intersects(outputGeom)) {
for (OutputInterface *output : outputs) {
const QRect outputGeometry(output->globalPosition(), output->pixelSize() / output->scale());
if (frameGeometry().intersects(outputGeometry)) {
clientOutputs << output;
}
}