From 2ccaa4342a60b37d7cf530834bacdb966c719547 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. --- src/wayland/display.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/display.h b/src/wayland/display.h index 7298288679..28ac0bcbea 100644 --- a/src/wayland/display.h +++ b/src/wayland/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; }