Browse Source

TypeMapDatabase: fix passing GeneratorKind to FindTypeMap calls

pull/1802/head
Deadlocklogic 2 years ago
parent
commit
502d77e925
  1. 5
      src/Generator/Types/TypeMapDatabase.cs

5
src/Generator/Types/TypeMapDatabase.cs

@ -64,13 +64,12 @@ namespace CppSharp.Types @@ -64,13 +64,12 @@ namespace CppSharp.Types
{
var specialization = template.GetClassTemplateSpecialization();
if (specialization != null &&
FindTypeMap(specialization, out typeMap))
FindTypeMap(specialization, kind, out typeMap))
return true;
if (template.Template.TemplatedDecl != null)
{
if (FindTypeMap(template.Template.TemplatedDecl,
out typeMap))
if (FindTypeMap(template.Template.TemplatedDecl, kind, out typeMap))
{
typeMap.Type = type;
return true;

Loading…
Cancel
Save