on xenial help sign in
Act on review commetns.
commitae54754863ab6dd6c006a157ad3892f9abfda697 authorPawel Stolowski <pawel.stolowski@canonical.com> dateWed 9 Oct 2013, 11:21 (13 years ago) parentc69e4e5
2 files changed+2−3
plugins/Unity/categories.cpp+1−2 plugins/Unity/categories.h+1−1
plugins/Unity/categories.cpp+1−2
@@ -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);
plugins/Unity/categories.h+1−1
@@ -74,7 +74,7 @@ private Q_SLOTS:
7474
7575private:
7676 void onCategoriesModelChanged(unity::glib::Object<DeeModel> model);
77− void onCategoryOrderChanged(std::vector<unsigned int> cat_order);
77+ void onCategoryOrderChanged(const std::vector<unsigned int>& cat_order);
7878
7979 DeeListModel* getResults(int index) const;
8080