1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Remove Andrew's warnings.

This commit is contained in:
John Camelon 2005-02-17 19:38:10 +00:00
parent f617b88f25
commit 95d8ce5d9d
3 changed files with 3 additions and 6 deletions

View file

@ -10,7 +10,6 @@
**********************************************************************/
package org.eclipse.cdt.internal.core.dom.parser.c;
import org.eclipse.cdt.core.dom.ast.IASTDeclaration;
import org.eclipse.cdt.core.dom.ast.IASTDeclarator;
import org.eclipse.cdt.core.dom.ast.IASTFunctionDeclarator;
import org.eclipse.cdt.core.dom.ast.IASTFunctionDefinition;
@ -124,7 +123,7 @@ public class CFunction implements IFunction, ICBinding {
*/
public IScope getScope() {
IASTFunctionDeclarator dtor = ( definition != null ) ? definition : declarators[0];
return CVisitor.getContainingScope( (IASTDeclaration) dtor.getParent() );
return CVisitor.getContainingScope( dtor.getParent() );
}
/* (non-Javadoc)

View file

@ -11,7 +11,6 @@
**********************************************************************/
package org.eclipse.cdt.internal.core.dom.parser.c;
import org.eclipse.cdt.core.dom.ast.IASTDeclaration;
import org.eclipse.cdt.core.dom.ast.IASTDeclarator;
import org.eclipse.cdt.core.dom.ast.IASTName;
import org.eclipse.cdt.core.dom.ast.IASTNode;
@ -63,7 +62,7 @@ public class CTypeDef implements ITypedef, ITypeContainer {
*/
public IScope getScope() {
IASTDeclarator declarator = (IASTDeclarator) name.getParent();
return CVisitor.getContainingScope( (IASTDeclaration) declarator.getParent() );
return CVisitor.getContainingScope( declarator.getParent() );
}
public Object clone(){

View file

@ -12,7 +12,6 @@
package org.eclipse.cdt.internal.core.dom.parser.c;
import org.eclipse.cdt.core.dom.ast.DOMException;
import org.eclipse.cdt.core.dom.ast.IASTDeclaration;
import org.eclipse.cdt.core.dom.ast.IASTDeclarator;
import org.eclipse.cdt.core.dom.ast.IASTName;
import org.eclipse.cdt.core.dom.ast.IASTNode;
@ -70,6 +69,6 @@ public class CVariable implements IVariable, ICBinding {
*/
public IScope getScope() {
IASTDeclarator declarator = (IASTDeclarator) name.getParent();
return CVisitor.getContainingScope( (IASTDeclaration) declarator.getParent() );
return CVisitor.getContainingScope( declarator.getParent() );
}
}