qmljshighlighter: un-templatize setFormats()

This is used excatly once.

ReviewedBy: Kai Koehne
This commit is contained in:
hjk
2010-06-04 10:10:01 +02:00
parent 90bd009835
commit 0ee6115998
3 changed files with 8 additions and 10 deletions

View File

@@ -82,6 +82,12 @@ static bool checkStartOfBinding(const Token &token)
} // end of switch
}
void Highlighter::setFormats(const QVector<QTextCharFormat> &formats)
{
QTC_ASSERT(formats.size() == NumFormats, return);
qCopy(formats.begin(), formats.end(), m_formats);
}
void Highlighter::highlightBlock(const QString &text)
{
const QList<Token> tokens = m_scanner(text, onBlockStart());