[folks] Don't use const string[] , Vala doesn't handle them correctly
- From: Raul Gutierrez Segales <raulgs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Don't use const string[] , Vala doesn't handle them correctly
- Date: Tue, 16 Aug 2011 19:22:41 +0000 (UTC)
commit 96da6b9da72a754597b940c065154e0acf0f1a00
Author: Raul Gutierrez Segales <rgs collabora co uk>
Date: Tue Aug 16 20:03:03 2011 +0100
Don't use const string[] , Vala doesn't handle them correctly
backends/libsocialweb/lib/swf-persona.vala | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/backends/libsocialweb/lib/swf-persona.vala b/backends/libsocialweb/lib/swf-persona.vala
index ae484e0..ba84326 100644
--- a/backends/libsocialweb/lib/swf-persona.vala
+++ b/backends/libsocialweb/lib/swf-persona.vala
@@ -40,7 +40,14 @@ public class Swf.Persona : Folks.Persona,
"im-addresses",
"web-service-addresses"
};
- private const string[] _writeable_properties = {}; // No writeable properties
+
+ /* No writeable properties
+ *
+ * FIXME: we can't mark this as const because Vala gets confused
+ * and generates the wrong C output (char *arr[0] = {}
+ * instead of char **arr = NULL)
+ */
+ private static string[] _writeable_properties = {};
/**
* The names of the Persona's linkable properties.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]