summaryrefslogtreecommitdiff
path: root/ccode/valaccodefunction.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-01-23 16:28:52 +0000
committerJürg Billeter <juergbi@src.gnome.org>2009-01-23 16:28:52 +0000
commit2c6d73b7cf6fef6e49570ce754ac89542ff365fa (patch)
tree0ca7d4158573553b1e4a6420697e516a6359c920 /ccode/valaccodefunction.vala
parent957d11cefd3526e85bf3c1ac54479c26ef7a62bb (diff)
downloadvala-2c6d73b7cf6fef6e49570ce754ac89542ff365fa.tar.gz
Refactor method parameter and result code generation
2009-01-23 Jürg Billeter <j@bitron.ch> * ccode/valaccodefunction.vala: * gobject/valaccodebasemodule.vala: * gobject/valaccodemethodmodule.vala: * gobject/valaccodemodule.vala: * gobject/valadbusclientmodule.vala: * gobject/valagasyncmodule.vala: * gobject/valagobjectmodule.vala: Refactor method parameter and result code generation svn path=/trunk/; revision=2398
Diffstat (limited to 'ccode/valaccodefunction.vala')
-rw-r--r--ccode/valaccodefunction.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/ccode/valaccodefunction.vala b/ccode/valaccodefunction.vala
index 38bdada30..1a9d24072 100644
--- a/ccode/valaccodefunction.vala
+++ b/ccode/valaccodefunction.vala
@@ -1,6 +1,6 @@
/* valaccodefunction.vala
*
- * Copyright (C) 2006-2007 Jürg Billeter
+ * Copyright (C) 2006-2009 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
@@ -49,9 +49,9 @@ public class Vala.CCodeFunction : CCodeNode {
private Gee.List<CCodeFormalParameter> parameters = new ArrayList<CCodeFormalParameter> ();
- public CCodeFunction (string name, string return_type) {
- this.return_type = return_type;
+ public CCodeFunction (string name, string return_type = "void") {
this.name = name;
+ this.return_type = return_type;
}
/**