summaryrefslogtreecommitdiff
path: root/vala/valastructvaluetype.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2019-09-29 18:15:54 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2019-09-30 16:03:29 +0200
commit9811ebe2f9b984bca96248183fc412fa8d049c60 (patch)
treeb5618812013aa513b85fcd4d20fe1b734f3498ef /vala/valastructvaluetype.vala
parent325c81d6f8db52a9172597766930797adfa6f04a (diff)
downloadvala-9811ebe2f9b984bca96248183fc412fa8d049c60.tar.gz
vala: Micro optimizations
Diffstat (limited to 'vala/valastructvaluetype.vala')
-rw-r--r--vala/valastructvaluetype.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/vala/valastructvaluetype.vala b/vala/valastructvaluetype.vala
index 1413b5d32..bdd20f3cd 100644
--- a/vala/valastructvaluetype.vala
+++ b/vala/valastructvaluetype.vala
@@ -31,7 +31,7 @@ public class Vala.StructValueType : ValueType {
}
public override bool is_invokable () {
- var st = type_symbol as Struct;
+ unowned Struct? st = type_symbol as Struct;
if (st != null && st.default_construction_method != null) {
return true;
} else {
@@ -40,7 +40,7 @@ public class Vala.StructValueType : ValueType {
}
public override unowned DataType? get_return_type () {
- var st = type_symbol as Struct;
+ unowned Struct? st = type_symbol as Struct;
if (st != null && st.default_construction_method != null) {
return st.default_construction_method.return_type;
} else {
@@ -49,7 +49,7 @@ public class Vala.StructValueType : ValueType {
}
public override unowned List<Parameter>? get_parameters () {
- var st = type_symbol as Struct;
+ unowned Struct? st = type_symbol as Struct;
if (st != null && st.default_construction_method != null) {
return st.default_construction_method.get_parameters ();
} else {