[vala/0.14] GVariant: Close the switch statement in the generated to_string() of enums
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.14] GVariant: Close the switch statement in the generated to_string() of enums
- Date: Mon, 12 Dec 2011 20:36:37 +0000 (UTC)
commit ab92c79a247cfd37041b95d18c0d43f6022351d7
Author: Simon Busch <morphis gravedo de>
Date: Mon Nov 28 07:34:36 2011 +0100
GVariant: Close the switch statement in the generated to_string() of enums
codegen/valagvariantmodule.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagvariantmodule.vala b/codegen/valagvariantmodule.vala
index aaef09c..8b08731 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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]