diff options
author | Juerg Billeter <j@bitron.ch> | 2008-04-13 19:01:07 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-04-13 19:01:07 +0000 |
commit | 3c5158fe2fe47fb84e8b6c86e46852afa1f6291a (patch) | |
tree | fe019ee827f8d2d95ca7350a0a013fc31d6e8eb5 /ccode/valaccodeifstatement.vala | |
parent | 2c3dc37cdbb2ccd9ec5b1a78fe104b0accbf4013 (diff) | |
download | vala-3c5158fe2fe47fb84e8b6c86e46852afa1f6291a.tar.gz |
fix build when using non-null types
2008-04-13 Juerg Billeter <j@bitron.ch>
* */*.vala: fix build when using non-null types
svn path=/trunk/; revision=1212
Diffstat (limited to 'ccode/valaccodeifstatement.vala')
-rw-r--r-- | ccode/valaccodeifstatement.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ccode/valaccodeifstatement.vala b/ccode/valaccodeifstatement.vala index effeb6267..544db3b08 100644 --- a/ccode/valaccodeifstatement.vala +++ b/ccode/valaccodeifstatement.vala @@ -1,6 +1,6 @@ /* valaccodeifstatement.vala * - * Copyright (C) 2006-2007 Jürg Billeter + * Copyright (C) 2006-2008 Jürg Billeter * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -39,9 +39,9 @@ public class Vala.CCodeIfStatement : CCodeStatement { /** * The optional statement to be evaluated if the condition doesn't hold. */ - public CCodeStatement false_statement { get; set construct; } + public CCodeStatement? false_statement { get; set construct; } - public CCodeIfStatement (CCodeExpression cond, CCodeStatement true_stmt, CCodeStatement false_stmt = null) { + public CCodeIfStatement (CCodeExpression cond, CCodeStatement true_stmt, CCodeStatement? false_stmt = null) { condition = cond; true_statement = true_stmt; false_statement = false_stmt; |