[vala] Allow implicit conversion from pointer to GValue
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Allow implicit conversion from pointer to GValue
- Date: Thu, 28 Jul 2011 06:57:47 +0000 (UTC)
commit eaeab24a8bf60d29a7930883eca3a80a69d88166
Author: Luca Bruno <lucabru src gnome org>
Date: Thu Jul 28 08:56:11 2011 +0200
Allow implicit conversion from pointer to GValue
Fixes bug 654143.
vala/valapointertype.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/vala/valapointertype.vala b/vala/valapointertype.vala
index d7da3d8..9234587 100644
--- a/vala/valapointertype.vala
+++ b/vala/valapointertype.vala
@@ -91,6 +91,11 @@ public class Vala.PointerType : DataType {
return base_type.compatible (target_type);
}
+ if (target_type.get_type_id () == "G_TYPE_VALUE") {
+ // allow implicit conversion to GValue
+ return true;
+ }
+
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]