Only code clean up to remove many warnings. There should be no changes
to program operation.
This commit is contained in:
+2
-2
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user