Minor code optimisation in template_parameters_resolve
This commit is contained in:
parent
26e14c4f18
commit
8bf3a342c2
1 changed files with 6 additions and 5 deletions
|
|
@ -594,14 +594,15 @@ static String *template_parameters_resolve(const String *base) {
|
||||||
if ((i + 1) < sz)
|
if ((i + 1) < sz)
|
||||||
Append(type, ",");
|
Append(type, ",");
|
||||||
}
|
}
|
||||||
Append(type, ")>");
|
if (rep) {
|
||||||
Append(type, suffix);
|
Append(type, ")>");
|
||||||
Delete(suffix);
|
Append(type, suffix);
|
||||||
Delete(tparms);
|
} else {
|
||||||
if (!rep) {
|
|
||||||
Delete(type);
|
Delete(type);
|
||||||
type = 0;
|
type = 0;
|
||||||
}
|
}
|
||||||
|
Delete(suffix);
|
||||||
|
Delete(tparms);
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue