astyle formatting

This commit is contained in:
Daniel Marjamäki 2011-12-26 07:58:02 +01:00
parent 096b22c46e
commit fd3f384e24
1 changed files with 2 additions and 3 deletions

View File

@ -300,8 +300,7 @@ void CheckAutoVariables::returnReference()
if (var1 && var1->isLocal() && !var1->isStatic()) {
// If reference variable is used, check what it references
if (Token::Match(var1->nameToken()->previous(), "& %var% ="))
{
if (Token::Match(var1->nameToken()->previous(), "& %var% =")) {
const Token *tok3 = var1->nameToken()->tokAt(2);
if (!Token::Match(tok3, "%var% [;.]"))
continue;