mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
ea4ce17b7d
commit
fae15af193
1 changed files with 19 additions and 25 deletions
|
@ -65,8 +65,7 @@ public class MethodContext {
|
|||
|
||||
public ICPPASTVisibilityLabel getMethodDeclarationASTVisibility() {
|
||||
ICPPASTVisibilityLabel label = new CPPASTVisibilityLabel();
|
||||
ICPPMember member = ((ICPPMember)qname.resolveBinding());
|
||||
|
||||
ICPPMember member = (ICPPMember) qname.resolveBinding();
|
||||
label.setVisibility(member.getVisibility());
|
||||
return label;
|
||||
}
|
||||
|
@ -115,7 +114,6 @@ public class MethodContext {
|
|||
public static boolean isSameClass(MethodContext context1, MethodContext context2) {
|
||||
ICPPInternalBinding bind1 = getICPPInternalBinding(context1);
|
||||
ICPPInternalBinding bind2 = getICPPInternalBinding(context2);
|
||||
|
||||
return isSameClass(bind1,bind2);
|
||||
}
|
||||
|
||||
|
@ -173,11 +171,8 @@ public class MethodContext {
|
|||
if (node instanceof ICPPASTCompositeTypeSpecifier) {
|
||||
ICPPASTCompositeTypeSpecifier type = (ICPPASTCompositeTypeSpecifier) node;
|
||||
IASTName classname = type.getName();
|
||||
ICPPInternalBinding bind = (ICPPInternalBinding)classname.resolveBinding();
|
||||
|
||||
return bind;
|
||||
return (ICPPInternalBinding)classname.resolveBinding();
|
||||
}
|
||||
|
||||
node = node.getParent();
|
||||
}
|
||||
|
||||
|
@ -194,8 +189,7 @@ public class MethodContext {
|
|||
return bind;
|
||||
}
|
||||
|
||||
public static boolean isSameClass(IASTName declName1,
|
||||
IASTName declName2) {
|
||||
public static boolean isSameClass(IASTName declName1, IASTName declName2) {
|
||||
ICPPClassType bind1 = getClassBinding(declName1);
|
||||
ICPPClassType bind2 = getClassBinding(declName2);
|
||||
return bind1.equals(bind2);
|
||||
|
|
Loading…
Add table
Reference in a new issue