]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Fix getting the cname of the constructor parent class
authorLuca Bruno <lucabru@src.gnome.org>
Tue, 10 May 2011 14:45:31 +0000 (16:45 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Tue, 10 May 2011 14:45:36 +0000 (16:45 +0200)
vala/valagirparser.vala

index b1b406b4ad14df9955b366e5a728cf5cb65f3cb0..ae66295bdbef4792031361abfa28b309630c5aa7 100644 (file)
@@ -2355,7 +2355,7 @@ public class Vala.GirParser : CodeVisitor {
 
                        string parent_ctype = null;
                        if (current.parent.symbol is Class) {
-                               parent_ctype = ((Class) current.parent.symbol).get_cname ();
+                               parent_ctype = current.parent.get_cname ();
                        }
                        if (return_ctype != null && (parent_ctype == null || return_ctype != parent_ctype + "*")) {
                                m.custom_return_type_cname = return_ctype;