gui: update copyright message in about dialog

This commit is contained in:
Daniel Marjamäki 2018-01-14 15:46:20 +01:00
parent 3704aa98d0
commit af26f00e04
3 changed files with 22 additions and 21 deletions

View File

@ -78,7 +78,7 @@
<item>
<widget class="QLabel" name="mCopyright">
<property name="text">
<string>Copyright © 2007-2017 Cppcheck team.</string>
<string>Copyright © 2007-2018 Cppcheck team.</string>
</property>
<property name="wordWrap">
<bool>true</bool>

View File

@ -1942,7 +1942,9 @@ void Tokenizer::simplifyRoundCurlyParentheses()
void Tokenizer::simplifySQL()
{
for (Token *tok = list.front(); tok; tok = tok->next()) {
if (Token::simpleMatch(tok, "__CPPCHECK_EMBEDDED_SQL_EXEC__ SQL")) {
if (!Token::simpleMatch(tok, "__CPPCHECK_EMBEDDED_SQL_EXEC__ SQL"))
continue;
const Token *end = findSQLBlockEnd(tok);
if (end == nullptr)
syntaxError(nullptr);
@ -1963,7 +1965,6 @@ void Tokenizer::simplifySQL()
tok = tok->tokAt(3);
}
}
}
void Tokenizer::simplifyArrayAccessSyntax()
{
@ -10058,7 +10059,7 @@ void Tokenizer::SimplifyNamelessRValueReferences()
}
}
const Token *Tokenizer::findSQLBlockEnd(const Token *tokSQLStart) const
const Token *Tokenizer::findSQLBlockEnd(const Token *tokSQLStart)
{
const Token *tokLastEnd = nullptr;
for (const Token *tok = tokSQLStart->tokAt(2); tok != nullptr; tok = tok->next()) {

View File

@ -719,7 +719,7 @@ private:
void printUnknownTypes() const;
/** Find end of SQL (or PL/SQL) block */
const Token *findSQLBlockEnd(const Token *tokSQLStart) const;
static const Token *findSQLBlockEnd(const Token *tokSQLStart);
public: