vala r1607 - in trunk: . vala
- From: jamiemcc svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1607 - in trunk: . vala
- Date: Tue, 17 Jun 2008 01:11:48 +0000 (UTC)
Author: jamiemcc
Date: Tue Jun 17 01:11:47 2008
New Revision: 1607
URL: http://svn.gnome.org/viewvc/vala?rev=1607&view=rev
Log:
2008-06-16 Jamie McCracken <jamiemcc gnome org>
* vala/valagenieparser.vala:
Constant arrays don't own their elements
Modified:
trunk/ChangeLog
trunk/vala/valagenieparser.vala
Modified: trunk/vala/valagenieparser.vala
==============================================================================
--- trunk/vala/valagenieparser.vala (original)
+++ trunk/vala/valagenieparser.vala Tue Jun 17 01:11:47 2008
@@ -2512,6 +2512,12 @@
}
expect_terminator ();
+ // constant arrays don't own their element
+ var array_type = type as ArrayType;
+ if (array_type != null) {
+ array_type.element_type.value_owned = false;
+ }
+
var c = new Constant (id, type, initializer, get_src_com (begin));
c.access = get_access (id);
set_attributes (c, attrs);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]