From 91ac3774b5bcb5649de4f0360b99c98244d05945 Mon Sep 17 00:00:00 2001 From: Bruno da Silva Belo Date: Tue, 24 Sep 2019 16:50:49 -0300 Subject: [PATCH] eolian: fixing switch case. Summary: Scope of the switch breaks compilation. Reviewers: felipealmeida, segfaultxavi, brunobelo Reviewed By: brunobelo Subscribers: segfaultxavi, cedric, brunobelo, felipealmeida, #reviewers, lauromoura, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10118 --- src/bin/eolian_mono/eolian/mono/documentation.hh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/bin/eolian_mono/eolian/mono/documentation.hh b/src/bin/eolian_mono/eolian/mono/documentation.hh index a7821c5e5d..6ed8169632 100644 --- a/src/bin/eolian_mono/eolian/mono/documentation.hh +++ b/src/bin/eolian_mono/eolian/mono/documentation.hh @@ -188,11 +188,13 @@ struct documentation_generator is_beta = eolian_object_is_beta(data) || eolian_object_is_beta(data2); break; case ::EOLIAN_OBJECT_CONSTANT: - auto names = utils::split(name_helpers::managed_namespace(::eolian_object_name_get(data)), '.'); - names.pop_back(); // Remove var name - ref = name_helpers::join_namespaces(names, '.'); - ref += "Constants."; - ref += name_helpers::managed_name(::eolian_object_short_name_get(data)); + { + auto names = utils::split(name_helpers::managed_namespace(::eolian_object_name_get(data)), '.'); + names.pop_back(); // Remove var name + ref = name_helpers::join_namespaces(names, '.'); + ref += "Constants."; + ref += name_helpers::managed_name(::eolian_object_short_name_get(data)); + } break; case ::EOLIAN_OBJECT_UNKNOWN: // If the reference cannot be resolved, just return an empty string and