From ea0708295204529305c87b1baa733707550db97e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20G=2E=20Aragoneses?= Date: Sat, 12 Oct 2013 00:47:38 +0200 Subject: [PATCH] generator: avoid another Implementor suffix hardcode This "Implementor" suffix was refactored recently (in commit 6cb03440c1a) to be accessed via the ImplementorName property. So we eliminate now the last occurrence of it in hardcoded form. --- generator/VirtualMethod.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generator/VirtualMethod.cs b/generator/VirtualMethod.cs index cb4410dd3..878f81a69 100644 --- a/generator/VirtualMethod.cs +++ b/generator/VirtualMethod.cs @@ -90,7 +90,8 @@ namespace GtkSharp.Generation { if (implementor != null) type = implementor.QualifiedName; else if (this.container_type is InterfaceGen) - type = this.container_type.Name + "Implementor"; // We are in an interface/adaptor, invoke the method in the implementor class + // We are in an interface/adaptor, invoke the method in the implementor class + type = (this.container_type as InterfaceGen).ImplementorName; else type = this.container_type.Name;