Browse Source

Fixed CppTypePrinter wrong typedef names.

pull/1/head
marcos henrich 12 years ago
parent
commit
f4656faaa9
  1. 7
      src/Generator/Types/CppTypePrinter.cs

7
src/Generator/Types/CppTypePrinter.cs

@ -93,12 +93,7 @@ namespace Cxxi.Types @@ -93,12 +93,7 @@ namespace Cxxi.Types
public string VisitTypedefType(TypedefType typedef, TypeQualifiers quals)
{
var decl = typedef.Declaration;
if (decl.Type == null)
return string.Empty;
return decl.Type.Visit(this);
return "::" + typedef.Declaration.QualifiedOriginalName;
}
public string VisitTemplateSpecializationType(TemplateSpecializationType template, TypeQualifiers quals)

Loading…
Cancel
Save