[vala] girparser: Fix getting the cname of the constructor parent class



commit 503fe3085ab10d1b4d1108eeee638ccff6f3c3a8
Author: Luca Bruno <lucabru src gnome org>
Date:   Tue May 10 16:45:31 2011 +0200

    girparser: Fix getting the cname of the constructor parent class

 vala/valagirparser.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index b1b406b..ae66295 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]