]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
GDbus Improving
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 28 Oct 2018 17:57:48 +0000 (18:57 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 11 Mar 2019 12:52:38 +0000 (13:52 +0100)
codegen/valagdbusservertransformer.vala

index 1cc06563d8cfe7b59a36042407d6b3df6aa4ae99..a3c5ac21700b432a9e5a652413f0e9e4fe575479 100644 (file)
@@ -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 ()) {