vala r1477 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1477 - in trunk: . vala
- Date: Thu, 29 May 2008 08:30:06 +0000 (UTC)
Author: juergbi
Date: Thu May 29 08:30:06 2008
New Revision: 1477
URL: http://svn.gnome.org/viewvc/vala?rev=1477&view=rev
Log:
2008-05-29 Juerg Billeter <j bitron ch>
* vala/valaparser.vala:
Constant arrays don't own their elements, fixes bug 535415
Modified:
trunk/ChangeLog
trunk/vala/valaparser.vala
Modified: trunk/vala/valaparser.vala
==============================================================================
--- trunk/vala/valaparser.vala (original)
+++ trunk/vala/valaparser.vala Thu May 29 08:30:06 2008
@@ -2023,6 +2023,13 @@
initializer = parse_variable_initializer ();
}
expect (TokenType.SEMICOLON);
+
+ // 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 = access;
set_attributes (c, attrs);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]