Welcome, Guest. Please login or register.
Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Konstantin

Pages: [1]
1
В функции bool ScriptHighlighter::isKeyWord(const QString& word) похоже лишний -1:

bool ScriptHighlighter::isKeyWord(const QString& word)
{
    for (int i = 0; i < KEYWORDS_COUNT-1; ++i){
        if (QLatin1String(keywords) == word) return true;
    }
    return false;
}

Должно быть
    for (int i = 0; i < KEYWORDS_COUNT; ++i){

Иначе последний элемент массива keywords не проверяется.

Pages: [1]