From 012bcbc2e0248d20c343d4ae52afa26a37b60538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 1 Jan 2012 14:53:48 +0100 Subject: [PATCH] Return const ref to client list instead of copy --- clientgroup.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clientgroup.h b/clientgroup.h index 5759283267..9d9412a849 100644 --- a/clientgroup.h +++ b/clientgroup.h @@ -145,7 +145,7 @@ public: /** * Returns the list of all the clients contained in this group in their current order. */ - ClientList clients() const; + const ClientList &clients() const; /** * Returns a list of the captions and icons of all the clients contained in this group * in their current order. @@ -230,7 +230,7 @@ inline bool ClientGroup::contains(Client* c) return clients_.contains(c); } -inline ClientList ClientGroup::clients() const +inline const ClientList &ClientGroup::clients() const { return clients_; }