summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorBruno da Silva Belo <brunodasilvabelo@gmail.com>2019-09-24 16:50:49 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-09-24 18:00:05 -0300
commit91ac3774b5bcb5649de4f0360b99c98244d05945 (patch)
treeea33fc5feb208bea68978544b6180191c4f8053a /src/bin
parent2e7b508312bf7dc6bd884475513f7d799d2f285d (diff)
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
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian_mono/eolian/mono/documentation.hh12
1 files 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 a7821c5..6ed8169 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
188 is_beta = eolian_object_is_beta(data) || eolian_object_is_beta(data2); 188 is_beta = eolian_object_is_beta(data) || eolian_object_is_beta(data2);
189 break; 189 break;
190 case ::EOLIAN_OBJECT_CONSTANT: 190 case ::EOLIAN_OBJECT_CONSTANT:
191 auto names = utils::split(name_helpers::managed_namespace(::eolian_object_name_get(data)), '.'); 191 {
192 names.pop_back(); // Remove var name 192 auto names = utils::split(name_helpers::managed_namespace(::eolian_object_name_get(data)), '.');
193 ref = name_helpers::join_namespaces(names, '.'); 193 names.pop_back(); // Remove var name
194 ref += "Constants."; 194 ref = name_helpers::join_namespaces(names, '.');
195 ref += name_helpers::managed_name(::eolian_object_short_name_get(data)); 195 ref += "Constants.";
196 ref += name_helpers::managed_name(::eolian_object_short_name_get(data));
197 }
196 break; 198 break;
197 case ::EOLIAN_OBJECT_UNKNOWN: 199 case ::EOLIAN_OBJECT_UNKNOWN:
198 // If the reference cannot be resolved, just return an empty string and 200 // If the reference cannot be resolved, just return an empty string and