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 {