From 06ff87741525f80328b797adb2a32c4da39dec1b Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Fri, 18 Dec 2015 15:46:12 +0300 Subject: [PATCH] Typo in variable name --- lib/symboldatabase.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 6ff439b59..15b66079f 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -365,22 +365,22 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti // copy/move constructor? else if (Token::Match(function.tokenDef, "%name% ( const| %name% &|&& &| %name%| )") || Token::Match(function.tokenDef, "%name% ( const| %name% <")) { - const Token* typTok = function.tokenDef->tokAt(2); - if (typTok->str() == "const") - typTok = typTok->next(); - if (typTok->strAt(1) == "<") { // TODO: Remove this branch (#4710) - if (Token::Match(typTok->linkAt(1), "> & %name%| )")) + const Token* typeTok = function.tokenDef->tokAt(2); + if (typeTok->str() == "const") + typeTok = typeTok->next(); + if (typeTok->strAt(1) == "<") { // TODO: Remove this branch (#4710) + if (Token::Match(typeTok->linkAt(1), "> & %name%| )")) function.type = Function::eCopyConstructor; - else if (Token::Match(typTok->linkAt(1), "> &&|& & %name%| )")) + else if (Token::Match(typeTok->linkAt(1), "> &&|& & %name%| )")) function.type = Function::eMoveConstructor; else function.type = Function::eConstructor; - } else if (typTok->strAt(1) == "&&" || typTok->strAt(2) == "&") + } else if (typeTok->strAt(1) == "&&" || typeTok->strAt(2) == "&") function.type = Function::eMoveConstructor; else function.type = Function::eCopyConstructor; - if (typTok->str() != function.tokenDef->str()) + if (typeTok->str() != function.tokenDef->str()) function.type = Function::eConstructor; // Overwrite, if types are not identical } // regular constructor