mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 12:55:40 +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;
|
IASTDeclarator sourceDeclarator = (IASTDeclarator) node;
|
||||||
if (sourceDeclarator.getParent() instanceof IASTSimpleDeclaration) {
|
if (sourceDeclarator.getParent() instanceof IASTSimpleDeclaration) {
|
||||||
IASTSimpleDeclaration decl = (IASTSimpleDeclaration) sourceDeclarator
|
IASTSimpleDeclaration decl = (IASTSimpleDeclaration) sourceDeclarator.getParent();
|
||||||
.getParent();
|
|
||||||
declSpec = decl.getDeclSpecifier();
|
declSpec = decl.getDeclSpecifier();
|
||||||
} else if (sourceDeclarator.getParent() instanceof IASTParameterDeclaration) {
|
} else if (sourceDeclarator.getParent() instanceof IASTParameterDeclaration) {
|
||||||
IASTParameterDeclaration decl = (IASTParameterDeclaration) sourceDeclarator
|
IASTParameterDeclaration decl = (IASTParameterDeclaration) sourceDeclarator.getParent();
|
||||||
.getParent();
|
|
||||||
declSpec = decl.getDeclSpecifier();
|
declSpec = decl.getDeclSpecifier();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue