diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2018-04-08 23:40:00 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2018-04-09 09:04:00 +0000 |
commit | 7d3a79c696a966877b5bde32730b70310d34afdc (patch) | |
tree | d0f07bb5acabbafc58ba9bb5890a9802fb0f3769 /src/plugins/texteditor/syntaxhighlighter.cpp | |
parent | 11336fb60458c62f41077318d119910cf1b193a4 (diff) |
Utils: Purge asConst
Replace by qAsConst.
Change-Id: I3301366f73c066c86f08df7188d70dc3b613c55c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/texteditor/syntaxhighlighter.cpp')
-rw-r--r-- | src/plugins/texteditor/syntaxhighlighter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/texteditor/syntaxhighlighter.cpp b/src/plugins/texteditor/syntaxhighlighter.cpp index 13bc6bba30..f72b563ca5 100644 --- a/src/plugins/texteditor/syntaxhighlighter.cpp +++ b/src/plugins/texteditor/syntaxhighlighter.cpp @@ -30,7 +30,6 @@ #include "fontsettings.h" #include <utils/algorithm.h> -#include <utils/asconst.h> #include <utils/qtcassert.h> #include <QTextDocument> @@ -837,7 +836,7 @@ void SyntaxHighlighter::highlightBlock(const QString &text) void SyntaxHighlighterPrivate::updateFormats(const FontSettings &fontSettings) { - for (const auto &pair : Utils::asConst(formatCategories)) + for (const auto &pair : qAsConst(formatCategories)) formats[pair.first] = fontSettings.toTextCharFormat(pair.second); whitespaceFormat = fontSettings.toTextCharFormat(C_VISUAL_WHITESPACE); } |