From e3ccabbd4dc22a7e59a9d1b93308d96a97d35328 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 12 Nov 2022 11:45:20 +0000 Subject: [PATCH] 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. --- Source/Swig/stype.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Swig/stype.c b/Source/Swig/stype.c index f227778f6..79e011c77 100644 --- a/Source/Swig/stype.c +++ b/Source/Swig/stype.c @@ -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;