summaryrefslogtreecommitdiff
path: root/vala/valamethodtype.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/valamethodtype.vala
parent325c81d6f8db52a9172597766930797adfa6f04a (diff)
downloadvala-9811ebe2f9b984bca96248183fc412fa8d049c60.tar.gz
vala: Micro optimizations
Diffstat (limited to 'vala/valamethodtype.vala')
-rw-r--r--vala/valamethodtype.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valamethodtype.vala b/vala/valamethodtype.vala
index 2ebef7451..2fc531870 100644
--- a/vala/valamethodtype.vala
+++ b/vala/valamethodtype.vala
@@ -41,7 +41,7 @@ public class Vala.MethodType : CallableType {
}
public override bool compatible (DataType target_type) {
- var dt = target_type as DelegateType;
+ unowned DelegateType? dt = target_type as DelegateType;
if (dt == null) {
// method types incompatible to anything but delegates
return false;