From 182877df8842415549f852353ca9c8de3aeb098e Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Mon, 14 Dec 2015 17:35:32 +0300 Subject: [PATCH] Variable name consistent with other code --- lib/tokenize.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 427558260..c062d288e 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -7101,13 +7101,13 @@ void Tokenizer::simplifyReference() for (Token *tok2 = tok; tok2 && tok2 != end; tok2 = tok2->next()) { // found a reference.. if (Token::Match(tok2, "[;{}] %type% & %name% (|= %name% )| ;")) { - const unsigned int ref_id = tok2->tokAt(3)->varId(); - if (!ref_id) + const unsigned int refId = tok2->tokAt(3)->varId(); + if (!refId) continue; // replace reference in the code.. for (Token *tok3 = tok2->tokAt(7); tok3 && tok3 != end; tok3 = tok3->next()) { - if (tok3->varId() == ref_id) { + if (tok3->varId() == refId) { tok3->str(tok2->strAt(5)); tok3->varId(tok2->tokAt(5)->varId()); }