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:
parent
1d75b6815e
commit
6301c56215
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue