mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +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
|
@Override
|
||||||
public CPPASTTemplateId copy(CopyStyle style) {
|
public CPPASTTemplateId copy(CopyStyle style) {
|
||||||
CPPASTTemplateId copy = new CPPASTTemplateId(templateName == null ?
|
CPPASTTemplateId copy =
|
||||||
null : templateName.copy(style));
|
new CPPASTTemplateId(templateName == null ? null : templateName.copy(style));
|
||||||
for (IASTNode arg : getTemplateArguments()) {
|
for (IASTNode arg : getTemplateArguments()) {
|
||||||
copy.internalAddTemplateArgument(arg == null ? null : arg.copy(style));
|
copy.internalAddTemplateArgument(arg == null ? null : arg.copy(style));
|
||||||
}
|
}
|
||||||
copy.setOffsetAndLength(this);
|
return copy(copy, style);
|
||||||
if (style == CopyStyle.withLocations) {
|
|
||||||
copy.setCopyLocation(this);
|
|
||||||
}
|
|
||||||
return copy;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue