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

Removed use of a deprecated class.

This commit is contained in:
Sergey Prigogin 2010-08-30 03:41:19 +00:00
parent 6ce6a419c8
commit 72fda063fc

View file

@ -185,12 +185,10 @@ public class NodeContainer {
}
IASTDeclarator sourceDeclarator = (IASTDeclarator) node;
if (sourceDeclarator.getParent() instanceof IASTSimpleDeclaration) {
IASTSimpleDeclaration decl = (IASTSimpleDeclaration) sourceDeclarator
.getParent();
IASTSimpleDeclaration decl = (IASTSimpleDeclaration) sourceDeclarator.getParent();
declSpec = decl.getDeclSpecifier();
} else if (sourceDeclarator.getParent() instanceof IASTParameterDeclaration) {
IASTParameterDeclaration decl = (IASTParameterDeclaration) sourceDeclarator
.getParent();
IASTParameterDeclaration decl = (IASTParameterDeclaration) sourceDeclarator.getParent();
declSpec = decl.getDeclSpecifier();
}