forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
11336fb604
commit
7d3a79c696
@@ -32,7 +32,6 @@
|
||||
#include <vcsbase/vcsoutputwindow.h>
|
||||
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/asconst.h>
|
||||
#include <utils/synchronousprocess.h>
|
||||
|
||||
#include <QJsonArray>
|
||||
@@ -933,7 +932,7 @@ void GerritModel::resultRetrieved(const QByteArray &output)
|
||||
std::stable_sort(changes.begin(), changes.end(), gerritChangeLessThan);
|
||||
numberIndexHash.clear();
|
||||
|
||||
for (const GerritChangePtr &c : Utils::asConst(changes)) {
|
||||
for (const GerritChangePtr &c : qAsConst(changes)) {
|
||||
// Avoid duplicate entries for example in the (unlikely)
|
||||
// case people do self-reviews.
|
||||
if (!itemForNumber(c->number)) {
|
||||
|
||||
Reference in New Issue
Block a user