refactoring: Replaced 'aaaa'

This commit is contained in:
Daniel Marjamäki 2009-05-01 22:41:55 +02:00
parent 26c193f9bc
commit 6f4c5ab71c
2 changed files with 2 additions and 2 deletions

View File

@ -526,7 +526,7 @@ void CheckBufferOverrunClass::CheckBufferOverrun_StructVariable()
const char *varname[3] = {0, 0, 0};
varname[1] = tok2->strAt(ivar);
int arrsize = std::atoi(tok2->strAt(ivar + 2));
int total_size = arrsize * _tokenizer->SizeOfType(tok2->next()->aaaa());
int total_size = arrsize * _tokenizer->SizeOfType(tok2->strAt(1));
if (total_size == 0)
continue;

View File

@ -200,7 +200,7 @@ private:
tokenizer.tokenize(istr, "test.cpp");
// Expected result..
ASSERT_EQUALS(std::string(10000, 'a'), std::string(tokenizer.tokens()->aaaa()));
ASSERT_EQUALS(std::string(10000, 'a'), tokenizer.tokens()->str());
}