diff options
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); } |