Only code clean up to remove many warnings. There should be no changes

to program operation.
This commit is contained in:
Collin Kidder
2022-12-05 19:33:47 -05:00
parent 549113f9e1
commit edc210c336
18 changed files with 62 additions and 59 deletions
+2 -2
View File
@@ -481,12 +481,12 @@ void JSHighlighter::mark(const QString &str, Qt::CaseSensitivity caseSensitivity
QStringList JSHighlighter::keywords() const
{
return m_keywords.toList();
return m_keywords.values();
}
void JSHighlighter::setKeywords(const QStringList &keywords)
{
m_keywords = QSet<QString>::fromList(keywords);
m_keywords = QSet<QString>(keywords.begin(), keywords.end());
rehighlight();
}