mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Unnecessary cast to ITypeContainer, bug 215642.
This commit is contained in:
parent
afe7108538
commit
df87215071
1 changed files with 8 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2006, 2007 QNX Software Systems and others.
|
* Copyright (c) 2006, 2008 QNX Software Systems and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -22,6 +22,7 @@ import org.eclipse.cdt.core.dom.ast.ITypedef;
|
||||||
import org.eclipse.cdt.core.dom.ast.c.ICQualifierType;
|
import org.eclipse.cdt.core.dom.ast.c.ICQualifierType;
|
||||||
import org.eclipse.cdt.internal.core.Util;
|
import org.eclipse.cdt.internal.core.Util;
|
||||||
import org.eclipse.cdt.internal.core.dom.parser.ITypeContainer;
|
import org.eclipse.cdt.internal.core.dom.parser.ITypeContainer;
|
||||||
|
import org.eclipse.cdt.internal.core.index.IIndexBindingConstants;
|
||||||
import org.eclipse.cdt.internal.core.index.IIndexType;
|
import org.eclipse.cdt.internal.core.index.IIndexType;
|
||||||
import org.eclipse.cdt.internal.core.index.QualifierTypeClone;
|
import org.eclipse.cdt.internal.core.index.QualifierTypeClone;
|
||||||
import org.eclipse.cdt.internal.core.pdom.PDOM;
|
import org.eclipse.cdt.internal.core.pdom.PDOM;
|
||||||
|
@ -38,6 +39,7 @@ public class PDOMQualifierType extends PDOMNode implements IQualifierType, ICQua
|
||||||
private static final int FLAGS = PDOMNode.RECORD_SIZE;
|
private static final int FLAGS = PDOMNode.RECORD_SIZE;
|
||||||
private static final int TYPE = PDOMNode.RECORD_SIZE + 1;
|
private static final int TYPE = PDOMNode.RECORD_SIZE + 1;
|
||||||
|
|
||||||
|
@SuppressWarnings("hiding")
|
||||||
private static final int RECORD_SIZE = PDOMNode.RECORD_SIZE + 5;
|
private static final int RECORD_SIZE = PDOMNode.RECORD_SIZE + 5;
|
||||||
|
|
||||||
private static final int CONST = 0x1;
|
private static final int CONST = 0x1;
|
||||||
|
@ -55,7 +57,7 @@ public class PDOMQualifierType extends PDOMNode implements IQualifierType, ICQua
|
||||||
|
|
||||||
// type
|
// type
|
||||||
try {
|
try {
|
||||||
IType targetType = ((ITypeContainer)type).getType();
|
IType targetType = type.getType();
|
||||||
if (type != null) {
|
if (type != null) {
|
||||||
PDOMNode targetTypeNode = getLinkageImpl().addType(this, targetType);
|
PDOMNode targetTypeNode = getLinkageImpl().addType(this, targetType);
|
||||||
if (targetTypeNode != null) {
|
if (targetTypeNode != null) {
|
||||||
|
@ -83,7 +85,7 @@ public class PDOMQualifierType extends PDOMNode implements IQualifierType, ICQua
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getNodeType() {
|
public int getNodeType() {
|
||||||
return PDOMLinkage.QUALIFIER_TYPE;
|
return IIndexBindingConstants.QUALIFIER_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IType getType() {
|
public IType getType() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue