diff --git a/CheckOther.cpp b/CheckOther.cpp index 262a5301f..f889d11a0 100644 --- a/CheckOther.cpp +++ b/CheckOther.cpp @@ -1,4 +1,4 @@ -/* +/* * c++check - c/c++ syntax checking * Copyright (C) 2007 Daniel Marjamäki * @@ -894,7 +894,7 @@ void CheckOther::functionVariableUsage() if (TOKEN::Match(tok, "-=|+=|*=|/= %var%")) varUsage[ tok->strAt(1) ] |= USAGE_READ; - + if (TOKEN::Match(tok, "%var%") && (tok->next()->str()==")" || isOp(tok->next()))) varUsage[ tok->str() ] |= USAGE_READ; @@ -908,7 +908,7 @@ void CheckOther::functionVariableUsage() std::string varname = it->first; unsigned int usage = it->second; - if (!isalpha(varname[0])) + if (!std::isalpha(varname[0])) continue; if ( ! ( usage & USAGE_DECLARE ) )