mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Code streamlining.
This commit is contained in:
parent
285d6cf662
commit
0901395d32
1 changed files with 3 additions and 7 deletions
|
@ -55,16 +55,12 @@ public class CPPASTTemplateId extends CPPASTNameBase implements ICPPASTTemplateI
|
|||
|
||||
@Override
|
||||
public CPPASTTemplateId copy(CopyStyle style) {
|
||||
CPPASTTemplateId copy = new CPPASTTemplateId(templateName == null ?
|
||||
null : templateName.copy(style));
|
||||
CPPASTTemplateId copy =
|
||||
new CPPASTTemplateId(templateName == null ? null : templateName.copy(style));
|
||||
for (IASTNode arg : getTemplateArguments()) {
|
||||
copy.internalAddTemplateArgument(arg == null ? null : arg.copy(style));
|
||||
}
|
||||
copy.setOffsetAndLength(this);
|
||||
if (style == CopyStyle.withLocations) {
|
||||
copy.setCopyLocation(this);
|
||||
}
|
||||
return copy;
|
||||
return copy(copy, style);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue