[mono/gtk-sharp] ea070829: generator: avoid another Implementor suffix hardcode
| Newsgroups | gmane.comp.gnome.mono.patches |
|---|---|
| Message-ID | <00000141b26d2cb3-cdd73418-cb03-42f3-9215-f3ff8be56806-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/gtk-sharp
Compare: https://github.com/mono/gtk-sharp/compare/634f9e5f2741...ea0708295204
Commit: ea0708295204529305c87b1baa733707550db97e
Author: Andrés G. Aragoneses <[email protected]> (knocte)
Committer: Bertrand Lorentz <[email protected]> (bl8)
Date: 2013-10-13 15:20:37 GMT
URL: https://github.com/mono/gtk-sharp/commit/ea0708295204529305c87b1baa733707550db97e
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.
Changed paths:
M generator/VirtualMethod.cs
Modified: generator/VirtualMethod.cs
===================================================================
@@ -90,7 +90,8 @@ public void GenerateCallback (StreamWriter sw, ClassBase implementor)
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;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches