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

Code formatting.

This commit is contained in:
Sergey Prigogin 2008-09-26 18:17:23 +00:00
parent 55ac9ffc6a
commit fed63c785d

View file

@ -21,7 +21,7 @@ import org.eclipse.cdt.internal.core.dom.parser.ITypeContainer;
*/
public class QualifierTypeClone implements IQualifierType, ITypeContainer, IIndexType {
private final IQualifierType delegate;
private IType type = null;
private IType type;
public QualifierTypeClone(IQualifierType qualifier) {
this.delegate = qualifier;
@ -39,16 +39,16 @@ public class QualifierTypeClone implements IQualifierType, ITypeContainer, IInde
return delegate.isVolatile();
}
public boolean isSameType(IType type) {
if( type instanceof ITypedef )
return type.isSameType( this );
if( !( type instanceof IQualifierType ) )
if (type instanceof ITypedef)
return type.isSameType(this);
if (!(type instanceof IQualifierType))
return false;
IQualifierType pt = (IQualifierType) type;
try {
if( isConst() == pt.isConst() && isVolatile() == pt.isVolatile() ) {
if (isConst() == pt.isConst() && isVolatile() == pt.isVolatile()) {
IType myType= getType();
return myType != null && myType.isSameType( pt.getType() );
return myType != null && myType.isSameType(pt.getType());
}
} catch (DOMException e) {
}