Commit 6f66766d authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

cast generic copy function to GBoxedCopyFunc

2007-11-04  Juerg Billeter  <j@bitron.ch>

	* gobject/valaccodegenerator.vala: cast generic copy function to
	  GBoxedCopyFunc

svn path=/trunk/; revision=680
parent 71cf90bd
2007-11-04 Jürg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala: cast generic copy function to
GBoxedCopyFunc
2007-11-04 Jürg Billeter <j@bitron.ch>
* vapi/glib-2.0.vapi: add PrintfFormat attribute to GString printf
......
......@@ -2385,7 +2385,7 @@ public class Vala.CCodeGenerator : CodeGenerator {
if (expr.type_reference.data_type is Class && expr.type_reference.data_type.is_subtype_of (gobject_type)) {
foreach (TypeReference type_arg in expr.type_reference.get_type_arguments ()) {
if (type_arg.takes_ownership) {
creation_call.add_argument (get_dup_func_expression (type_arg));
creation_call.add_argument (new CCodeCastExpression (get_dup_func_expression (type_arg), "GBoxedCopyFunc"));
creation_call.add_argument (get_destroy_func_expression (type_arg));
} else {
creation_call.add_argument (new CCodeConstant ("NULL"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment