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:
parent
6ce6a419c8
commit
72fda063fc
1 changed files with 2 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue