Browse Source

Ignored the case when matching methods because of the bug about non-shared v-table entries.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/111/head
Dimitar Dobrev 12 years ago
parent
commit
dd317c6987
  1. 7
      src/AST/Class.cs

7
src/AST/Class.cs

@ -281,10 +281,9 @@ namespace CppSharp.AST @@ -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;

Loading…
Cancel
Save