1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2015-05-07 15:48:04 -07:00
parent 4dc26f9a20
commit ef75f97a97
2 changed files with 5 additions and 5 deletions

View file

@ -34,7 +34,7 @@ import org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPTemplates;
import org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPVisitor;
/**
* Template ids consist of an unqualified name (or operator or conversion name)
* Template ID consist of an unqualified name (or operator or conversion name)
* and an array of template arguments.
*/
public class CPPASTTemplateId extends CPPASTNameBase implements ICPPASTTemplateId, IASTAmbiguityParent {
@ -115,7 +115,8 @@ public class CPPASTTemplateId extends CPPASTNameBase implements ICPPASTTemplateI
@Override
public IASTNode[] getTemplateArguments() {
if (templateArguments == null) return ICPPASTTemplateId.EMPTY_ARG_ARRAY;
if (templateArguments == null)
return ICPPASTTemplateId.EMPTY_ARG_ARRAY;
return ArrayUtil.trim(IASTNode.class, templateArguments);
}

View file

@ -89,9 +89,8 @@ class PDOMCPPClassInstance extends PDOMCPPClassSpecialization implements ICPPTem
public void storeTemplateArguments() {
try {
// fTemplateArguments here are the temporarily stored, possibly non-PDOM
// arguments stored by the constructor. Construct the PDOM arguments and
// store them.
// fTemplateArguments here are the temporarily stored, possibly non-PDOM arguments stored
// by the constructor. Construct the PDOM arguments and store them.
final long argListRec= PDOMCPPArgumentList.putArguments(this, fTemplateArguments);
getDB().putRecPtr(record + ARGUMENTS, argListRec);