aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/syntaxhighlighter.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2023-07-24 14:22:37 +0200
committerEike Ziller <eike.ziller@qt.io>2023-07-25 07:26:58 +0000
commit355e8d133c323343666fb6b55f590e1e2520ef34 (patch)
tree1b9737ee3f05651afade9d4dadbba3bbd13fdfda /src/plugins/texteditor/syntaxhighlighter.cpp
parentc007be8a9ab764f2386b450c31f3fdec946f6db7 (diff)
Fix some warnings about unused things
Change-Id: I42bb514dfe1d6745b1469b508a4cfa576e17c31b Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/plugins/texteditor/syntaxhighlighter.cpp')
-rw-r--r--src/plugins/texteditor/syntaxhighlighter.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/texteditor/syntaxhighlighter.cpp b/src/plugins/texteditor/syntaxhighlighter.cpp
index d8b39a5c2c..24a96522b3 100644
--- a/src/plugins/texteditor/syntaxhighlighter.cpp
+++ b/src/plugins/texteditor/syntaxhighlighter.cpp
@@ -512,7 +512,6 @@ void SyntaxHighlighter::formatSpaces(const QString &text, int start, int count)
void SyntaxHighlighter::setFormatWithSpaces(const QString &text, int start, int count,
const QTextCharFormat &format)
{
- Q_D(const SyntaxHighlighter);
const QTextCharFormat visualSpaceFormat = whitespacified(format);
const int end = std::min(start + count, int(text.length()));