summaryrefslogtreecommitdiff
path: root/codegen/valaclassregisterfunction.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2018-11-15 20:50:02 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2019-09-30 14:43:00 +0200
commita6bdd4c53b371a979d6ff68c2a81f53e570853d6 (patch)
tree04a4f6642d839856aa86a611d0c937e116509556 /codegen/valaclassregisterfunction.vala
parent061c02a91056b2f8c8b4cc985db4aec9c0a235fc (diff)
downloadvala-a6bdd4c53b371a979d6ff68c2a81f53e570853d6.tar.gz
codegen: Follow rename of DataType data_type property to type_symbol
Diffstat (limited to 'codegen/valaclassregisterfunction.vala')
-rw-r--r--codegen/valaclassregisterfunction.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/codegen/valaclassregisterfunction.vala b/codegen/valaclassregisterfunction.vala
index b4906d5de..c3d0d57e3 100644
--- a/codegen/valaclassregisterfunction.vala
+++ b/codegen/valaclassregisterfunction.vala
@@ -153,11 +153,11 @@ public class Vala.ClassRegisterFunction : TypeRegisterFunction {
var frag = new CCodeFragment ();
foreach (DataType base_type in class_reference.get_base_types ()) {
- if (!(base_type.data_type is Interface)) {
+ if (!(base_type.type_symbol is Interface)) {
continue;
}
- var iface = (Interface) base_type.data_type;
+ unowned Interface iface = (Interface) base_type.type_symbol;
var iface_info_name = "%s_info".printf (get_ccode_lower_case_name (iface, null));
@@ -172,11 +172,11 @@ public class Vala.ClassRegisterFunction : TypeRegisterFunction {
public override void get_type_interface_init_statements (CodeContext context, CCodeBlock block, bool plugin) {
foreach (DataType base_type in class_reference.get_base_types ()) {
- if (!(base_type.data_type is Interface)) {
+ if (!(base_type.type_symbol is Interface)) {
continue;
}
- var iface = (Interface) base_type.data_type;
+ unowned Interface iface = (Interface) base_type.type_symbol;
var iface_info_name = "%s_info".printf (get_ccode_lower_case_name (iface, null));
if (!plugin) {