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:
parent
f617b88f25
commit
95d8ce5d9d
3 changed files with 3 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -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(){
|
||||
|
|
|
@ -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() );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue