[vala/wip/transform: 72/102] SQUASH Reduce copy types in transformer



commit bdccfa6ab0d0678892195b0eb0e8c780de83278e
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Oct 23 15:32:11 2018 +0200

    SQUASH Reduce copy types in transformer

 vala/valaassignment.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vala/valaassignment.vala b/vala/valaassignment.vala
index c20ccc002..898b099ca 100644
--- a/vala/valaassignment.vala
+++ b/vala/valaassignment.vala
@@ -308,7 +308,7 @@ public class Vala.Assignment : Expression {
                                if (right.symbol_reference is Method &&
                                    variable.variable_type is DelegateType) {
                                        var m = (Method) right.symbol_reference;
-                                       var dt = (DelegateType) variable.variable_type.copy ();
+                                       var dt = (DelegateType) variable.variable_type;
                                        var cb = dt.delegate_symbol;
 
                                        /* check whether method matches callback type */
@@ -387,7 +387,7 @@ public class Vala.Assignment : Expression {
 
                                if (ea.container.value_type is ArrayType) {
                                        var array_type = (ArrayType) ea.container.value_type;
-                                       element_type = array_type.element_type.copy ();
+                                       element_type = array_type.element_type;
                                } else {
                                        var args = ea.container.value_type.get_type_arguments ();
                                        assert (args.size == 1);


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