mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Code formatting.
This commit is contained in:
parent
55ac9ffc6a
commit
fed63c785d
1 changed files with 6 additions and 6 deletions
|
@ -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) {
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue