Utils: Purge asConst

Replace by qAsConst.

Change-Id: I3301366f73c066c86f08df7188d70dc3b613c55c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2018-04-08 23:40:00 +03:00
committed by Orgad Shaneh
parent 11336fb604
commit 7d3a79c696
53 changed files with 65 additions and 163 deletions

View File

@@ -30,7 +30,6 @@
#include <vcsbase/vcsoutputwindow.h>
#include <vcsbase/vcscommand.h>
#include <utils/asconst.h>
#include <utils/qtcassert.h>
#include <QDateTime>
@@ -138,7 +137,7 @@ public:
fn.append(nodes.first()->sha);
nodes.removeFirst();
for (const BranchNode *n : Utils::asConst(nodes))
for (const BranchNode *n : qAsConst(nodes))
fn.append(n->name);
return fn;
@@ -328,7 +327,7 @@ Qt::ItemFlags BranchModel::flags(const QModelIndex &index) const
void BranchModel::clear()
{
for (BranchNode *root : Utils::asConst(m_rootNode->children)) {
for (BranchNode *root : qAsConst(m_rootNode->children)) {
while (root->count())
delete root->children.takeLast();
}