Simpler names when using SwigType_manglestr for templates

The default template name is generated instead of one with the default
template parameter.

Used in various places such as the type system.
This commit is contained in:
William S Fulton 2022-11-12 11:45:20 +00:00
commit e3ccabbd4d

View file

@ -1190,7 +1190,9 @@ static String *manglestr_default(const SwigType *s) {
SwigType *type = ss;
if (SwigType_istemplate(ss)) {
SwigType *ty = Swig_symbol_template_deftype(ss, 0);
SwigType *dt = Swig_symbol_template_deftype(ss, 0);
String *ty = Swig_symbol_type_qualify(dt, 0);
Delete(dt);
Delete(ss);
ss = ty;
type = ss;