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
public Method GetMethodByName(string methodName) public Method GetMethodByName(string methodName)
{ {
var method = Methods.FirstOrDefault(m => m.Name == methodName); var method = Methods.FirstOrDefault(
if (method != null) // HACK: because of the non-shared v-table entries bug one copy may have been renamed and the other not
return method; m => string.Compare(m.Name, methodName, StringComparison.OrdinalIgnoreCase) == 0);
method = Methods.FirstOrDefault(m => m.Name == methodName);
if (method != null) if (method != null)
return method; return method;
Declaration decl; Declaration decl;

Loading…
Cancel
Save