Do not append integer to char *
commit6203bf09be568117322e585bf6fbf100a8756daf
authorAlbert Astals <albert.astals@canonical.com>
dateWed 22 Oct 2014, 14:40 (12 years ago)
parent1ff2631
tests/plugins/Utils/qsortfilterproxymodeltest.cpp+1−1
@@ -64,7 +64,7 @@ public:
6464 bool insertRows(int row, int count, const QModelIndex &parent=QModelIndex()) {
6565 beginInsertRows(parent, row, row+count-1);
6666 for (int i=0; i<count; i++) {
67− m_list.insert(i+row, "test"+i);
67+ m_list.insert(i+row, QString("test%1").arg(i));
6868 }
6969 endInsertRows();
7070 return true;