diff options
author | Juerg Billeter <j@bitron.ch> | 2008-04-13 16:17:00 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-04-13 16:17:00 +0000 |
commit | 85cfd74faae12e90275990b2b887adc9a1f71d1d (patch) | |
tree | 2cce940835212c7cd7c0854482abe9a74cbbd120 /vala/valaenumvalue.vala | |
parent | 206cd6716043d886c6531ca358f5b442c5ea991e (diff) | |
download | vala-85cfd74faae12e90275990b2b887adc9a1f71d1d.tar.gz |
deprecate construct as parameter modifier, fixes bug 524138
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: deprecate construct as parameter modifier,
fixes bug 524138
* */*.vala: port to new syntax
svn path=/trunk/; revision=1209
Diffstat (limited to 'vala/valaenumvalue.vala')
-rw-r--r-- | vala/valaenumvalue.vala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vala/valaenumvalue.vala b/vala/valaenumvalue.vala index d5d2e1611..a985f91bb 100644 --- a/vala/valaenumvalue.vala +++ b/vala/valaenumvalue.vala @@ -39,7 +39,8 @@ public class Vala.EnumValue : Symbol { * @param name enum value name * @return newly created enum value */ - public EnumValue (construct string name, SourceReference source_reference = null) { + public EnumValue (string name, SourceReference source_reference = null) { + this.name = name; this.source_reference = source_reference; } @@ -50,7 +51,9 @@ public class Vala.EnumValue : Symbol { * @param value numerical representation * @return newly created enum value */ - public EnumValue.with_value (construct string name, construct Expression value, SourceReference source_reference = null) { + public EnumValue.with_value (string name, Expression value, SourceReference source_reference = null) { + this.name = name; + this.value = value; this.source_reference = source_reference; } |