[vala/wip/transform: 139/140] GDbus Improving



commit 465a1256daf45f88ddbd8dda897a5263dc49cfa8
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Oct 28 18:57:48 2018 +0100

    GDbus Improving

 codegen/valagdbusservertransformer.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/codegen/valagdbusservertransformer.vala b/codegen/valagdbusservertransformer.vala
index 1cc06563d..a3c5ac217 100644
--- a/codegen/valagdbusservertransformer.vala
+++ b/codegen/valagdbusservertransformer.vala
@@ -185,7 +185,7 @@ public class Vala.GDBusServerTransformer : GDBusClientTransformer {
 
                push_builder (new CodeBuilder.for_subroutine (im));
                var object_type = SemanticAnalyzer.get_data_type_for_symbol (sym);
-               var object = b.add_temp_declaration (null, expression (@"($object_type) (((GLib.Object[]) 
user_data)[0])"));
+               var object = b.add_temp_declaration (data_type (@"$object_type", false), expression 
(@"($object_type) (((GLib.Object[]) user_data)[0])"));
                b.open_switch (expression ("method_name"), null);
                b.add_return ();
                foreach (var m in sym.get_methods ()) {


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