diff options
Diffstat (limited to 'src/plugins/git/branchmodel.cpp')
-rw-r--r-- | src/plugins/git/branchmodel.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/git/branchmodel.cpp b/src/plugins/git/branchmodel.cpp index 7b47f0f73e..1061d16522 100644 --- a/src/plugins/git/branchmodel.cpp +++ b/src/plugins/git/branchmodel.cpp @@ -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(); } |