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) 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;
} }