Fix many clazy warnings

This commit is contained in:
Tobias Fella
2026-02-26 00:16:34 +01:00
committed by Tobias Fella
parent c08693c508
commit 9cad195704
13 changed files with 60 additions and 50 deletions

View File

@@ -38,7 +38,7 @@ void ChatBarSyntaxHighlighter::highlightBlock(const QString &text)
m_errors.clear();
m_checker->setText(text);
}
for (const auto &error : m_errors) {
for (const auto &error : std::as_const(m_errors)) {
setFormat(error.first, error.second.size(), m_errorFormat);
}
}