Fixed Cppcheck warning

This commit is contained in:
Daniel Marjamäki 2018-01-15 22:03:23 +01:00
parent c331a10fa7
commit b08c1868bc
1 changed files with 1 additions and 1 deletions

View File

@ -1041,7 +1041,7 @@ void TemplateSimplifier::expandTemplate(
}
// replace name..
if (tok3 && tok3->str() == lastName) {
if (tok3->str() == lastName) {
if (Token::Match(tok3->tokAt(-2), "> :: %name% ( )")) {
; // Ticket #7942: Replacing for out-of-line constructors generates invalid syntax
} else if (!Token::simpleMatch(tok3->next(), "<")) {