summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-04 20:26:36 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-05 07:21:16 (GMT)
commit1ffe47e37f734620825b6eb6f3147b53f091ca83 (patch)
tree2480bf366858bf0b6679d1c719508f8fb4d61cac /Source/QtDialog
parent726b3b6f756e8b486549271062c40d53f996e404 (diff)
downloadCMake-1ffe47e37f734620825b6eb6f3147b53f091ca83.zip
CMake-1ffe47e37f734620825b6eb6f3147b53f091ca83.tar.gz
CMake-1ffe47e37f734620825b6eb6f3147b53f091ca83.tar.bz2
QCMakeCacheView: prever QVector over QList
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/QCMakeCacheView.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx
index 67191a9..08c2d58 100644
--- a/Source/QtDialog/QCMakeCacheView.cxx
+++ b/Source/QtDialog/QCMakeCacheView.cxx
@@ -429,7 +429,7 @@ QCMakePropertyList QCMakeCacheModel::properties() const
return props;
}
- QList<QModelIndex> idxs;
+ QVector<QModelIndex> idxs;
idxs.append(this->index(0, 0));
// walk the entire model for property entries
@@ -454,7 +454,7 @@ QCMakePropertyList QCMakeCacheModel::properties() const
(idxs.last().row() + 1) >= rowCount(idxs.last().parent()) ||
#endif
!idxs.last().sibling(idxs.last().row() + 1, 0).isValid())) {
- idxs.removeLast();
+ idxs.remove(idxs.size() - 1);
}
if (!idxs.isEmpty()) {
idxs.last() = idxs.last().sibling(idxs.last().row() + 1, 0);