summaryrefslogtreecommitdiff
path: root/vala/valaforstatement.vala
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2008-04-23 11:24:24 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-04-23 11:24:24 +0000
commit0a81a29a26a1bd63bc8c560666453d32d90d42da (patch)
treec78ac5ec84421f27354e0802d4a0911629eb1f4a /vala/valaforstatement.vala
parent88729bd7fa5e377937f4687b93e9a000a9001fae (diff)
downloadvala-0a81a29a26a1bd63bc8c560666453d32d90d42da.tar.gz
Fix criticals when using for statements without condition
2008-04-23 Juerg Billeter <j@bitron.ch> * vala/valaforstatement.vala: * ccode/valaccodeforstatement.vala: Fix criticals when using for statements without condition svn path=/trunk/; revision=1307
Diffstat (limited to 'vala/valaforstatement.vala')
-rw-r--r--vala/valaforstatement.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/vala/valaforstatement.vala b/vala/valaforstatement.vala
index ba035d8ba..b9979fbdc 100644
--- a/vala/valaforstatement.vala
+++ b/vala/valaforstatement.vala
@@ -69,10 +69,10 @@ public class Vala.ForStatement : CodeNode, Statement {
* @param source_reference reference to source code
* @return newly created for statement
*/
- public ForStatement (Expression condition, Block body, SourceReference? source_reference = null) {
+ public ForStatement (Expression? condition, Block body, SourceReference? source_reference = null) {
+ this.condition = condition;
this.body = body;
this.source_reference = source_reference;
- this.condition = condition;
}
/**