From: Simon Busch Date: Mon, 28 Nov 2011 06:34:36 +0000 (+0100) Subject: GVariant: Close the switch statement in the generated to_string() of enums X-Git-Tag: 0.14.2~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab92c79a247cfd37041b95d18c0d43f6022351d7;p=thirdparty%2Fvala.git GVariant: Close the switch statement in the generated to_string() of enums --- diff --git a/codegen/valagvariantmodule.vala b/codegen/valagvariantmodule.vala index aaef09c2d..8b0873179 100644 --- a/codegen/valagvariantmodule.vala +++ b/codegen/valagvariantmodule.vala @@ -550,6 +550,8 @@ public class Vala.GVariantModule : GAsyncModule { ccode.add_break (); } + ccode.close(); + ccode.add_return (new CCodeIdentifier ("str")); pop_function ();