Compatibility fix for gcc 4.5

This commit is contained in:
Daniel Marjamäki 2018-03-29 22:00:04 +02:00
parent 3c5777fbc6
commit dbe962ad5d
1 changed files with 1 additions and 1 deletions

View File

@ -835,7 +835,7 @@ void CheckUnusedVar::checkFunctionVariableUsage_iterateScopes(const Scope* const
}
// templates
if (tok->isName() && tok->str().back() == '>') {
if (tok->isName() && endsWith(tok->str(), '>')) {
// TODO: This is a quick fix to handle when constants are used
// as template parameters. Try to handle this better, perhaps
// only remove constants.