From a69228ed0de794726419a49ccb4e7aedfdacbec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 3 Sep 2014 20:03:13 +0200 Subject: [PATCH] [kwin_wayland] Fix Display::outputs Should return a const-ref not a const copy. --- wayland_server/display.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wayland_server/display.h b/wayland_server/display.h index 7298288679..28ac0bcbea 100644 --- a/wayland_server/display.h +++ b/wayland_server/display.h @@ -66,7 +66,7 @@ public: OutputInterface *createOutput(QObject *parent = nullptr); void removeOutput(OutputInterface *output); - const QList outputs() const { + const QList &outputs() const { return m_outputs; }