[vala] girparser: Fix getting the cname of the constructor parent class
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: Fix getting the cname of the constructor parent class
- Date: Tue, 10 May 2011 15:30:58 +0000 (UTC)
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]