From 1ffe47e37f734620825b6eb6f3147b53f091ca83 Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Thu, 4 May 2017 22:26:36 +0200 Subject: QCMakeCacheView: prever QVector over QList --- Source/QtDialog/QCMakeCacheView.cxx | 4 ++-- 1 file 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 idxs; + QVector 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); -- cgit v0.12