Variable name consistent with surroundings
This commit is contained in:
parent
2feb86a6af
commit
64360d291d
|
@ -43,11 +43,11 @@ void CheckInternal::checkTokenMatchPatterns()
|
||||||
const std::string& funcname = tok->strAt(2);
|
const std::string& funcname = tok->strAt(2);
|
||||||
|
|
||||||
// Get pattern string
|
// Get pattern string
|
||||||
const Token *pattern_tok = tok->tokAt(4)->nextArgument();
|
const Token *patternTok = tok->tokAt(4)->nextArgument();
|
||||||
if (!pattern_tok || pattern_tok->tokType() != Token::eString)
|
if (!patternTok || patternTok->tokType() != Token::eString)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
const std::string pattern = pattern_tok->strValue();
|
const std::string pattern = patternTok->strValue();
|
||||||
if (pattern.empty()) {
|
if (pattern.empty()) {
|
||||||
simplePatternError(tok, pattern, funcname);
|
simplePatternError(tok, pattern, funcname);
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue