Fixed one of the warnings with GCC: variable shadows a member of Token class.

This commit is contained in:
Edoardo Prezioso 2012-04-27 02:40:46 +02:00
parent bf0ed17a16
commit bc8de44ddd
1 changed files with 3 additions and 3 deletions

View File

@ -119,9 +119,9 @@ void Token::update_property_isStandardType()
if (_str.size() < 3)
return;
static const char * const type[] = {"int", "char", "bool", "long", "short", "float", "double", "size_t", 0};
for (int i = 0; type[i]; i++) {
if (_str == type[i]) {
static const char * const stdtype[] = {"int", "char", "bool", "long", "short", "float", "double", "size_t", 0};
for (int i = 0; stdtype[i]; i++) {
if (_str == stdtype[i]) {
_isStandardType = true;
_type = eType;
break;