From 06e26212a261e5c7ce8e8ddd1c4085ac7e69688f Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 17 Sep 2020 03:11:39 +0200 Subject: [PATCH] Add missing const-referenece I assume it was a typo --- plugins/platforms/wayland/wayland_backend.cpp | 2 +- plugins/platforms/wayland/wayland_backend.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/platforms/wayland/wayland_backend.cpp b/plugins/platforms/wayland/wayland_backend.cpp index aae1337894..f79d9cde76 100644 --- a/plugins/platforms/wayland/wayland_backend.cpp +++ b/plugins/platforms/wayland/wayland_backend.cpp @@ -759,7 +759,7 @@ void WaylandBackend::flush() } } -WaylandOutput* WaylandBackend::getOutputAt(const QPointF globalPosition) +WaylandOutput* WaylandBackend::getOutputAt(const QPointF &globalPosition) { const auto pos = globalPosition.toPoint(); auto checkPosition = [pos](WaylandOutput *output) { diff --git a/plugins/platforms/wayland/wayland_backend.h b/plugins/platforms/wayland/wayland_backend.h index ce2bb33c86..4dfeda6a81 100644 --- a/plugins/platforms/wayland/wayland_backend.h +++ b/plugins/platforms/wayland/wayland_backend.h @@ -195,7 +195,7 @@ public: void checkBufferSwap(); - WaylandOutput* getOutputAt(const QPointF globalPosition); + WaylandOutput* getOutputAt(const QPointF &globalPosition); Outputs outputs() const override; Outputs enabledOutputs() const override; QVector waylandOutputs() const {