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 { public class QualifierTypeClone implements IQualifierType, ITypeContainer, IIndexType {
private final IQualifierType delegate; private final IQualifierType delegate;
private IType type = null; private IType type;
public QualifierTypeClone(IQualifierType qualifier) { public QualifierTypeClone(IQualifierType qualifier) {
this.delegate = qualifier; this.delegate = qualifier;
@ -39,16 +39,16 @@ public class QualifierTypeClone implements IQualifierType, ITypeContainer, IInde
return delegate.isVolatile(); return delegate.isVolatile();
} }
public boolean isSameType(IType type) { public boolean isSameType(IType type) {
if( type instanceof ITypedef ) if (type instanceof ITypedef)
return type.isSameType( this ); return type.isSameType(this);
if( !( type instanceof IQualifierType ) ) if (!(type instanceof IQualifierType))
return false; return false;
IQualifierType pt = (IQualifierType) type; IQualifierType pt = (IQualifierType) type;
try { try {
if( isConst() == pt.isConst() && isVolatile() == pt.isVolatile() ) { if (isConst() == pt.isConst() && isVolatile() == pt.isVolatile()) {
IType myType= getType(); IType myType= getType();
return myType != null && myType.isSameType( pt.getType() ); return myType != null && myType.isSameType(pt.getType());
} }
} catch (DOMException e) { } catch (DOMException e) {
} }