From 4e01baa83ff746420538b83ecd41c085b46f6917 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Sun, 9 Oct 2016 10:22:29 -0700 Subject: [PATCH] Cosmetics Change-Id: I83fb4c257059beaef16fa35512766196c5fc4dcb --- .../cdt/internal/core/pdom/dom/cpp/PDOMCPPVariable.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPVariable.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPVariable.java index 313ae61e989..11f873c7954 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPVariable.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPVariable.java @@ -31,7 +31,7 @@ import org.eclipse.cdt.internal.core.pdom.dom.c.PDOMCAnnotation; import org.eclipse.core.runtime.CoreException; /** - * Binding for a c++ variable in the index, serves as a base class for fields. + * Binding for a C++ variable in the index, serves as a base class for fields. */ class PDOMCPPVariable extends PDOMCPPBinding implements ICPPVariable { private static final int TYPE_OFFSET = PDOMCPPBinding.RECORD_SIZE; @@ -40,7 +40,8 @@ class PDOMCPPVariable extends PDOMCPPBinding implements ICPPVariable { @SuppressWarnings("hiding") protected static final int RECORD_SIZE = ANNOTATIONS + 1; - public PDOMCPPVariable(PDOMLinkage linkage, PDOMNode parent, IVariable variable, boolean setTypeAndValue) throws CoreException { + public PDOMCPPVariable(PDOMLinkage linkage, PDOMNode parent, IVariable variable, boolean setTypeAndValue) + throws CoreException { super(linkage, parent, variable.getNameCharArray()); // Find the type record @@ -69,7 +70,7 @@ class PDOMCPPVariable extends PDOMCPPBinding implements ICPPVariable { } protected void setType(final PDOMLinkage linkage, IType newType) throws CoreException { - linkage.storeType(record+TYPE_OFFSET, newType); + linkage.storeType(record + TYPE_OFFSET, newType); } protected byte encodeFlags(IVariable variable) {