From fd20f4a2e4cccb7d1e08dccf855447734f9bf793 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Tue, 16 Jun 2015 02:49:06 +0300 Subject: [PATCH] Fixe a bug when renaming statics in base classes. Signed-off-by: Dimitar Dobrev --- src/Generator/Passes/RenamePass.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Generator/Passes/RenamePass.cs b/src/Generator/Passes/RenamePass.cs index 70b86224..5431aa75 100644 --- a/src/Generator/Passes/RenamePass.cs +++ b/src/Generator/Passes/RenamePass.cs @@ -40,7 +40,7 @@ namespace CppSharp.Passes public virtual bool Rename(Declaration decl, out string newName) { var method = decl as Method; - if (method != null) + if (method != null && !method.IsStatic) { var rootBaseMethod = ((Class) method.Namespace).GetRootBaseMethod(method); if (rootBaseMethod != null && rootBaseMethod != method) @@ -51,7 +51,7 @@ namespace CppSharp.Passes } var property = decl as Property; - if (property != null) + if (property != null && !property.IsStatic) { var rootBaseProperty = ((Class) property.Namespace).GetRootBaseProperty(property); if (rootBaseProperty != null && rootBaseProperty != property)