[glibmm/gmmproc-refactor] Fix "switch" in Enum convertor.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/gmmproc-refactor] Fix "switch" in Enum convertor.
- Date: Sun, 22 Jul 2012 18:17:16 +0000 (UTC)
commit 8bdb213aa8befda72ce757530488a13f09742544
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Sun Jul 22 17:28:50 2012 +0200
Fix "switch" in Enum convertor.
I treated "continue" as a fall through. Seems that it does not work
that way.
tools/pm/Common/TypeInfo/Convertors/Enum.pm | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/tools/pm/Common/TypeInfo/Convertors/Enum.pm b/tools/pm/Common/TypeInfo/Convertors/Enum.pm
index d9ab92a..c90b81e 100644
--- a/tools/pm/Common/TypeInfo/Convertors/Enum.pm
+++ b/tools/pm/Common/TypeInfo/Convertors/Enum.pm
@@ -30,11 +30,7 @@ sub convert ($$$$$$)
given ($conversion_type)
{
- when (Common::TypeInfo::Global::C_CXX)
- {
- continue;
- }
- when (Common::TypeInfo::Global::CXX_C)
+ when ([Common::TypeInfo::Global::C_CXX, Common::TypeInfo::Global::CXX_C])
{
if ($from_details->match_sigil (['']) and $to_details->match_sigil (['']))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]