From c842d732431183f27404c3c148baa4c6adc3805f Mon Sep 17 00:00:00 2001 From: triton Date: Sun, 16 Feb 2014 21:31:04 +0000 Subject: [PATCH] Fixed invalid declaration name cleaning. It could happen that by visiting the types of declarations, we'd wrongly reset the unique names counter. In this specific case, this was happening while visiting an event and its parameters. --- src/Generator/Passes/CleanInvalidDeclNamesPass.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Generator/Passes/CleanInvalidDeclNamesPass.cs b/src/Generator/Passes/CleanInvalidDeclNamesPass.cs index 21cfd131..24a3a52e 100644 --- a/src/Generator/Passes/CleanInvalidDeclNamesPass.cs +++ b/src/Generator/Passes/CleanInvalidDeclNamesPass.cs @@ -23,6 +23,11 @@ namespace CppSharp.Passes return name; } + public override bool VisitType(AST.Type type, TypeQualifiers quals) + { + return false; + } + public override bool VisitDeclaration(Declaration decl) { // Do not clean up namespace names since it can mess up with the