]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: support changing names of virtual methods without wrappers
authorEvan Nemerson <evan@coeus-group.com>
Wed, 1 Feb 2012 00:50:02 +0000 (16:50 -0800)
committerEvan Nemerson <evan@coeus-group.com>
Wed, 1 Feb 2012 00:50:02 +0000 (16:50 -0800)
Fixes bug 668991.

vala/valagirparser.vala

index f760f3acd8bcf4b59f4a37fd2002b41241aefd7b..1fc2185fa75d6a3eac56fe7b242b04d5bd00ad4b 100644 (file)
@@ -2748,10 +2748,8 @@ public class Vala.GirParser : CodeVisitor {
                                }
                                if (invoker == null && !metadata.has_argument (ArgumentType.VFUNC_NAME)) {
                                        s.set_attribute ("NoWrapper", true, s.source_reference);
-                               } else {
-                                       if (current.girdata["name"] != name) {
-                                               m.set_attribute_string ("CCode", "vfunc_name", current.girdata["name"]);
-                                       }
+                               } if (current.girdata["name"] != name) {
+                                       m.set_attribute_string ("CCode", "vfunc_name", current.girdata["name"]);
                                }
                        } else if (element_name == "function") {
                                m.binding = MemberBinding.STATIC;