astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2018-08-27 13:48:46 +02:00
parent fc135e1087
commit 4378327c43
1 changed files with 4 additions and 4 deletions

View File

@ -780,17 +780,17 @@ bool isVariableChanged(const Token *start, const Token *end, const unsigned int
return true;
// Member function call
if(Token::Match(tok, "%name% . %name% (")) {
if (Token::Match(tok, "%name% . %name% (")) {
const Variable * var = tok->variable();
bool isConst = var && var->isConst();
if(!isConst && var) {
if (!isConst && var) {
const ValueType * valueType = var->valueType();
isConst = (valueType && valueType->pointer == 1 && valueType->constness == 1);
}
const Token *ftok = tok->tokAt(2);
const Function * fun = ftok->function();
if(!isConst && (!fun || !fun->isConst()))
if (!isConst && (!fun || !fun->isConst()))
return true;
}