From 863dff09bf68e602442377e1c134ee8215270c83 2017-06-15 13:18:35 From: Alexandre Leroux Date: 2017-06-15 13:18:35 Subject: [PATCH] Removes useless const ref --- diff --git a/core/src/Variable/VariableModel.cpp b/core/src/Variable/VariableModel.cpp index c7b7684..75389d5 100644 --- a/core/src/Variable/VariableModel.cpp +++ b/core/src/Variable/VariableModel.cpp @@ -64,9 +64,7 @@ QVariant VariableModel::data(const QModelIndex &index, int role) const } if (role == Qt::DisplayRole) { - const auto &variable = impl->m_Variables.at(index.row()); - - if (variable) { + if (auto variable = impl->m_Variables.at(index.row()).get()) { switch (index.column()) { case NAME_COLUMN: return variable->m_Name;