From df4a39d0a2d315134385ea101f6499aadedc81d0 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Tue, 10 Jan 2017 11:13:44 -0800 Subject: [PATCH] Cosmetics Change-Id: I51c0b2d876c48c30564177fc2c1323bc7eee1409 --- .../org/eclipse/cdt/core/dom/ast/IPointerType.java | 2 +- .../core/dom/parser/cpp/CPPPointerToMemberType.java | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/IPointerType.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/IPointerType.java index 77d909fdda8..c0df2bf605e 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/IPointerType.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/IPointerType.java @@ -19,7 +19,7 @@ public interface IPointerType extends IType { /** * Returns the type that this is a pointer to. */ - public IType getType(); + public IType getType(); /** * Returns whether the pointer is const qualified. diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPPointerToMemberType.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPPointerToMemberType.java index 6047a57b625..f8684a716fb 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPPointerToMemberType.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPPointerToMemberType.java @@ -25,7 +25,7 @@ import org.eclipse.cdt.internal.core.dom.parser.ITypeMarshalBuffer; import org.eclipse.core.runtime.CoreException; /** - * Models pointer to members. + * Models pointer to a composite type member. */ public class CPPPointerToMemberType extends CPPPointerType implements ICPPPointerToMemberType { private ICPPASTPointerToMember operator; @@ -40,9 +40,10 @@ public class CPPPointerToMemberType extends CPPPointerType implements ICPPPointe this.operator = operator; } - public CPPPointerToMemberType(IType type, IType thisType, boolean isConst, boolean isVolatile, boolean isRestrict) { + public CPPPointerToMemberType(IType type, IType classType, boolean isConst, boolean isVolatile, + boolean isRestrict) { super(type, isConst, isVolatile, isRestrict); - this.classType = thisType; + this.classType = classType; } @Override @@ -65,9 +66,6 @@ public class CPPPointerToMemberType extends CPPPointerType implements ICPPPointe return false; } - /* (non-Javadoc) - * @see org.eclipse.cdt.core.dom.ast.cpp.ICPPPointerToMemberType#getMemberOfClass() - */ @Override public IType getMemberOfClass() { if (classType == null) { @@ -92,7 +90,8 @@ public class CPPPointerToMemberType extends CPPPointerType implements ICPPPointe if (binding instanceof IType) { classType = (IType) binding; } else { - classType = new CPPClassType.CPPClassTypeProblem(nameSpec, IProblemBinding.SEMANTIC_INVALID_TYPE, nameSpec.toCharArray()); + classType = new CPPClassType.CPPClassTypeProblem(nameSpec, IProblemBinding.SEMANTIC_INVALID_TYPE, + nameSpec.toCharArray()); } } return classType;