summaryrefslogtreecommitdiff
path: root/vala/valaproperty.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2018-04-25 18:21:45 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2018-04-25 19:51:14 +0200
commit3383b9989be90755b2f589ca69f51b37915aee1f (patch)
treec459e6abf7190e9da034359189c3459853ab6ba5 /vala/valaproperty.vala
parent12861326fc4d2a5ab840f7868505bc24feb87332 (diff)
downloadvala-3383b9989be90755b2f589ca69f51b37915aee1f.tar.gz
vala: Transform Lockable.*_lock_used() methods into "lock_used" property
Diffstat (limited to 'vala/valaproperty.vala')
-rw-r--r--vala/valaproperty.vala12
1 files changed, 2 insertions, 10 deletions
diff --git a/vala/valaproperty.vala b/vala/valaproperty.vala
index 1bc54a532..6e5ae6973 100644
--- a/vala/valaproperty.vala
+++ b/vala/valaproperty.vala
@@ -214,9 +214,9 @@ public class Vala.Property : Symbol, Lockable {
}
}
- private Expression _initializer;
+ public bool lock_used { get; set; }
- private bool lock_used = false;
+ private Expression _initializer;
private DataType _data_type;
@@ -267,14 +267,6 @@ public class Vala.Property : Symbol, Lockable {
}
}
- public bool get_lock_used () {
- return lock_used;
- }
-
- public void set_lock_used (bool used) {
- lock_used = used;
- }
-
/**
* Checks whether the accessors of this property are compatible
* with the specified base property.