Code cleanup

This commit is contained in:
Robert Reif 2010-08-26 07:32:48 +02:00 committed by Daniel Marjamäki
parent ca9cdf5bf5
commit 5c3ecc31da
1 changed files with 1 additions and 7 deletions

View File

@ -1092,20 +1092,14 @@ void Tokenizer::simplifyTypedef()
while (!done)
{
std::string pattern;
std::string pattern = typeName->str();
int scope = 0;
bool inScope = true;
bool exitThisScope = false;
int exitScope = 0;
bool simplifyType = false;
unsigned int classLevel = spaceInfo.size();
for (unsigned int i = classLevel; i < spaceInfo.size(); i++)
pattern += (spaceInfo[i].className + " :: ");
pattern += typeName->str();
for (Token *tok2 = tok; tok2; tok2 = tok2->next())
{
if (tok2->str() == "}")