[vala/0.42] vala: Don't check for GLib.Variant casting in POSIX profile
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.42] vala: Don't check for GLib.Variant casting in POSIX profile
- Date: Wed, 7 Nov 2018 16:55:28 +0000 (UTC)
commit 4c35a39bd492a07a212653c32f3bffc0fe126758
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Nov 6 14:08:03 2018 +0100
vala: Don't check for GLib.Variant casting in POSIX profile
vala/valacastexpression.vala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/vala/valacastexpression.vala b/vala/valacastexpression.vala
index 3d7114df0..ee39e0e73 100644
--- a/vala/valacastexpression.vala
+++ b/vala/valacastexpression.vala
@@ -176,7 +176,8 @@ public class Vala.CastExpression : Expression {
value_type.nullable = true;
}
- if (is_gvariant (context, inner.value_type) && !is_gvariant (context, value_type)) {
+ if (context.profile == Profile.GOBJECT
+ && is_gvariant (context, inner.value_type) && !is_gvariant (context, value_type)) {
// GVariant unboxing returns owned value
value_type.value_owned = true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]