[vala/staging: 1/2] 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/staging: 1/2] vala: Don't check for GLib.Variant casting in POSIX profile
- Date: Tue, 6 Nov 2018 14:24:09 +0000 (UTC)
commit fc49008fa9c753cb0f65521517963aabb2091f7a
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 86bdad1d1..1dc357764 100644
--- a/vala/valacastexpression.vala
+++ b/vala/valacastexpression.vala
@@ -180,7 +180,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]