refactoring: Replaced 'aaaa'
This commit is contained in:
parent
26c193f9bc
commit
6f4c5ab71c
|
@ -526,7 +526,7 @@ void CheckBufferOverrunClass::CheckBufferOverrun_StructVariable()
|
||||||
const char *varname[3] = {0, 0, 0};
|
const char *varname[3] = {0, 0, 0};
|
||||||
varname[1] = tok2->strAt(ivar);
|
varname[1] = tok2->strAt(ivar);
|
||||||
int arrsize = std::atoi(tok2->strAt(ivar + 2));
|
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)
|
if (total_size == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
|
@ -200,7 +200,7 @@ private:
|
||||||
tokenizer.tokenize(istr, "test.cpp");
|
tokenizer.tokenize(istr, "test.cpp");
|
||||||
|
|
||||||
// Expected result..
|
// Expected result..
|
||||||
ASSERT_EQUALS(std::string(10000, 'a'), std::string(tokenizer.tokens()->aaaa()));
|
ASSERT_EQUALS(std::string(10000, 'a'), tokenizer.tokens()->str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue