1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Index: Fixes comparison of qualified types.

This commit is contained in:
Markus Schorn 2006-12-14 14:56:54 +00:00
parent 1d75b6815e
commit 6301c56215

View file

@ -120,8 +120,10 @@ public class PDOMQualifierType extends PDOMNode implements IQualifierType,
IQualifierType pt = (IQualifierType) type;
try {
if( isConst() == pt.isConst() && isVolatile() == pt.isVolatile() )
return type.isSameType( pt.getType() );
if( isConst() == pt.isConst() && isVolatile() == pt.isVolatile() ) {
IType myType= getType();
return myType != null && myType.isSameType( pt.getType() );
}
} catch (DOMException e) {
}
return false;