]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
GVariant: Close the switch statement in the generated to_string() of enums
authorSimon Busch <morphis@gravedo.de>
Mon, 28 Nov 2011 06:34:36 +0000 (07:34 +0100)
committerJürg Billeter <j@bitron.ch>
Mon, 12 Dec 2011 19:54:01 +0000 (20:54 +0100)
codegen/valagvariantmodule.vala

index aaef09c2d6145f6faf832742e816b285ecfbc316..8b0873179ad0ad1346a93f9c07933101b02a9e2f 100644 (file)
@@ -550,6 +550,8 @@ public class Vala.GVariantModule : GAsyncModule {
                        ccode.add_break ();
                }
 
+               ccode.close();
+
                ccode.add_return (new CCodeIdentifier ("str"));
 
                pop_function ();