mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-11 10:15:39 +02:00
Removed warning.
This commit is contained in:
parent
14fc9a1512
commit
f25575ee4d
1 changed files with 6 additions and 6 deletions
|
@ -45,12 +45,12 @@ public class TypeInfoProvider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public ITypeInfo getTypeInfo( eType type )
|
public ITypeInfo getTypeInfo( eType t )
|
||||||
{
|
{
|
||||||
int idx = BASIC;
|
int idx = BASIC;
|
||||||
if( type == ITypeInfo.t_type || type == ITypeInfo.t_enumerator )
|
if( t == ITypeInfo.t_type || t == ITypeInfo.t_enumerator )
|
||||||
idx = TYPE;
|
idx = TYPE;
|
||||||
else if( type == ITypeInfo.t_templateParameter )
|
else if( t == ITypeInfo.t_templateParameter )
|
||||||
idx = TEMPLATE;
|
idx = TEMPLATE;
|
||||||
|
|
||||||
ITypeInfo returnType = null;
|
ITypeInfo returnType = null;
|
||||||
|
@ -66,16 +66,16 @@ public class TypeInfoProvider
|
||||||
}
|
}
|
||||||
if( returnType == null ){
|
if( returnType == null ){
|
||||||
//if there is nothing free, just give them a new one
|
//if there is nothing free, just give them a new one
|
||||||
if( type == ITypeInfo.t_type ){
|
if( t == ITypeInfo.t_type ){
|
||||||
returnType = new TypeInfo();
|
returnType = new TypeInfo();
|
||||||
} else if( type == ITypeInfo.t_templateParameter ) {
|
} else if( t == ITypeInfo.t_templateParameter ) {
|
||||||
returnType = new TemplateParameterTypeInfo();
|
returnType = new TemplateParameterTypeInfo();
|
||||||
} else {
|
} else {
|
||||||
returnType = new BasicTypeInfo();
|
returnType = new BasicTypeInfo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
returnType.setType( type );
|
returnType.setType( t );
|
||||||
return returnType;
|
return returnType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue