[vala] GVariant: Close the switch statement in the generated to_string() of enums
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] GVariant: Close the switch statement in the generated to_string() of enums
- Date: Sun, 11 Dec 2011 13:20:04 +0000 (UTC)
commit 13464f481e2a50d15b8da65dcbc061d0b5472992
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]