From dd317c6987c9d42f0578ad8a340bbc62922bc08f Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Thu, 7 Nov 2013 22:20:03 +0200 Subject: [PATCH] Ignored the case when matching methods because of the bug about non-shared v-table entries. Signed-off-by: Dimitar Dobrev --- src/AST/Class.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/AST/Class.cs b/src/AST/Class.cs index 300f2ac2..a4d029ef 100644 --- a/src/AST/Class.cs +++ b/src/AST/Class.cs @@ -281,10 +281,9 @@ namespace CppSharp.AST public Method GetMethodByName(string methodName) { - var method = Methods.FirstOrDefault(m => m.Name == methodName); - if (method != null) - return method; - method = Methods.FirstOrDefault(m => m.Name == methodName); + var method = Methods.FirstOrDefault( + // HACK: because of the non-shared v-table entries bug one copy may have been renamed and the other not + m => string.Compare(m.Name, methodName, StringComparison.OrdinalIgnoreCase) == 0); if (method != null) return method; Declaration decl;