Minor code optimisation in template_parameters_resolve

This commit is contained in:
William S Fulton 2017-07-26 18:54:54 +01:00
commit 8bf3a342c2

View file

@ -594,14 +594,15 @@ static String *template_parameters_resolve(const String *base) {
if ((i + 1) < sz)
Append(type, ",");
}
Append(type, ")>");
Append(type, suffix);
Delete(suffix);
Delete(tparms);
if (!rep) {
if (rep) {
Append(type, ")>");
Append(type, suffix);
} else {
Delete(type);
type = 0;
}
Delete(suffix);
Delete(tparms);
return type;
}