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
@@ -25,7 +25,6 @@
|
||||
|
||||
#include <texteditor/texteditorconstants.h>
|
||||
|
||||
#include <utils/asconst.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include "githighlighters.h"
|
||||
@@ -138,7 +137,7 @@ void GitRebaseHighlighter::highlightBlock(const QString &text)
|
||||
changeIndex += changeLen;
|
||||
}
|
||||
} else {
|
||||
for (const RebaseAction &action : Utils::asConst(m_actions)) {
|
||||
for (const RebaseAction &action : qAsConst(m_actions)) {
|
||||
if (action.exp.indexIn(text) != -1) {
|
||||
const int len = action.exp.matchedLength();
|
||||
setFormat(0, len, formatForCategory(action.formatCategory));
|
||||
|
||||
Reference in New Issue
Block a user