Commit 8de0f822 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Fix compiler warning

No need to copy
parent 61ab042d
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment