From 9a1d0a7eecfcbd772438887113b21adae3831408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 13 Nov 2011 20:11:00 +0100 Subject: [PATCH] Use const access to list element Saves a copy operation. --- clientgroup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientgroup.h b/clientgroup.h index 49d346a077..718216eda3 100644 --- a/clientgroup.h +++ b/clientgroup.h @@ -210,7 +210,7 @@ inline QList< ClientGroupItem > ClientGroup::items() const inline Client* ClientGroup::visible() { - return clients_[visible_]; + return clients_.at(visible_); } inline QSize ClientGroup::minSize() const