Tokenizer::simplifyTokenList: use SizeOfType().
No functional change.
This commit is contained in:
parent
fa5cdcb128
commit
3d0926936f
|
@ -1233,8 +1233,7 @@ void Tokenizer::simplifyTokenList()
|
||||||
if (Token::Match(tok, "sizeof ( %type% * )"))
|
if (Token::Match(tok, "sizeof ( %type% * )"))
|
||||||
{
|
{
|
||||||
std::ostringstream str;
|
std::ostringstream str;
|
||||||
// 'sizeof(type *)' has the same size as 'sizeof(char *)'
|
str << SizeOfType(tok->strAt(3));
|
||||||
str << sizeof(char *);
|
|
||||||
tok->str(str.str().c_str());
|
tok->str(str.str().c_str());
|
||||||
|
|
||||||
for (int i = 0; i < 4; i++)
|
for (int i = 0; i < 4; i++)
|
||||||
|
|
Loading…
Reference in New Issue