Fixed one of the warnings with GCC: variable shadows a member of Token class.
This commit is contained in:
parent
bf0ed17a16
commit
bc8de44ddd
|
@ -119,9 +119,9 @@ void Token::update_property_isStandardType()
|
||||||
if (_str.size() < 3)
|
if (_str.size() < 3)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
static const char * const type[] = {"int", "char", "bool", "long", "short", "float", "double", "size_t", 0};
|
static const char * const stdtype[] = {"int", "char", "bool", "long", "short", "float", "double", "size_t", 0};
|
||||||
for (int i = 0; type[i]; i++) {
|
for (int i = 0; stdtype[i]; i++) {
|
||||||
if (_str == type[i]) {
|
if (_str == stdtype[i]) {
|
||||||
_isStandardType = true;
|
_isStandardType = true;
|
||||||
_type = eType;
|
_type = eType;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue