@@ -94,7 +94,7 @@ void Categories::onCategoriesModelChanged(unity::glib::Object<DeeModel> model)
9494 setModel(model);
9595}
9696
97−void Categories::onCategoryOrderChanged(std::vector<unsigned int> cat_order)
97+void Categories::onCategoryOrderChanged(const std::vector<unsigned int>& cat_order)
9898{
9999 for (unsigned int pos = 0; pos<cat_order.size(); pos++)
100100 {
@@ -152,7 +152,6 @@ void Categories::onRowCountChanged()
152152 for (int i = 0; i < rowCount(); i++) {
153153 auto id = data(index(i), RoleCategoryId).toString();
154154 if (id != iter.key()) continue;
155− const int mappedIndex = m_categoryOrder.indexOf(i);
156155 QVector<int> roles;
157156 roles.append(RoleCount);
158157 QModelIndex changedIndex = index(i);