diff options
author | Juerg Billeter <j@bitron.ch> | 2008-04-13 15:44:44 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-04-13 15:44:44 +0000 |
commit | 206cd6716043d886c6531ca358f5b442c5ea991e (patch) | |
tree | 0d277104d825ce27f0aefa6734071809aabbf1b5 /vala/valaswitchsection.vala | |
parent | 67916b6274ed6dfbc0200cca77a52f1f21848486 (diff) | |
download | vala-206cd6716043d886c6531ca358f5b442c5ea991e.tar.gz |
report warning when using obsolete syntax for non-null types
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: report warning when using obsolete syntax
for non-null types
* */*.vala, */*.vapi: port to new syntax
svn path=/trunk/; revision=1208
Diffstat (limited to 'vala/valaswitchsection.vala')
-rw-r--r-- | vala/valaswitchsection.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vala/valaswitchsection.vala b/vala/valaswitchsection.vala index 08f1314f5..42c0afb22 100644 --- a/vala/valaswitchsection.vala +++ b/vala/valaswitchsection.vala @@ -44,7 +44,7 @@ public class Vala.SwitchSection : Block { * * @param label a switch label */ - public void add_label (SwitchLabel! label) { + public void add_label (SwitchLabel label) { labels.add (label); } @@ -72,7 +72,7 @@ public class Vala.SwitchSection : Block { * * @param stmt a statement */ - public void add_statement (Statement! stmt) { + public void add_statement (Statement stmt) { statement_list.add (stmt); } @@ -85,11 +85,11 @@ public class Vala.SwitchSection : Block { return new ReadOnlyCollection<Statement> (statement_list); } - public override void accept (CodeVisitor! visitor) { + public override void accept (CodeVisitor visitor) { visitor.visit_switch_section (this); } - public override void accept_children (CodeVisitor! visitor) { + public override void accept_children (CodeVisitor visitor) { foreach (SwitchLabel label in labels) { label.accept (visitor); } |