From 8de0f8223defdce45e6369649df6c605e304feb1 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 14 Aug 2020 16:50:08 +0200 Subject: [PATCH] Fix compiler warning No need to copy --- kcmkwin/kwintabbox/layoutpreview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kcmkwin/kwintabbox/layoutpreview.cpp b/kcmkwin/kwintabbox/layoutpreview.cpp index 56d95d975e..2fd7468f5d 100644 --- a/kcmkwin/kwintabbox/layoutpreview.cpp +++ b/kcmkwin/kwintabbox/layoutpreview.cpp @@ -166,7 +166,7 @@ QVariant ExampleClientModel::data(const QModelIndex &index, int role) const QString ExampleClientModel::longestCaption() const { QString caption; - for (const auto item : m_services) { + for (const auto &item : m_services) { const QString name = item->name(); if (name.size() > caption.size()) { caption = name;