eolian: fixing switch case.
authorBruno da Silva Belo <brunodasilvabelo@gmail.com>
Tue, 24 Sep 2019 19:50:49 +0000 (16:50 -0300)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 24 Sep 2019 21:50:43 +0000 (06:50 +0900)
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

index a7821c5..6ed8169 100644 (file)
@@ -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