From 5d61edabd8385f010b45192d83c784b07da86dbc Mon Sep 17 00:00:00 2001 From: Savio Sena Date: Thu, 17 Jul 2014 04:05:30 -0300 Subject: [PATCH] eolian-cxx: Fixed the translation of classnames --- src/bin/eolian_cxx/eolian_wrappers.hh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bin/eolian_cxx/eolian_wrappers.hh b/src/bin/eolian_cxx/eolian_wrappers.hh index 7954428..1b26a35 100644 --- a/src/bin/eolian_cxx/eolian_wrappers.hh +++ b/src/bin/eolian_cxx/eolian_wrappers.hh @@ -316,15 +316,14 @@ event_create(Eolian_Class const& klass, const Eolian_Event *event_) { efl::eolian::eo_event event; const char *name, *comment; - const Eolian_Type *type; - static_cast(type); // XXX - if(::eolian_class_event_information_get(event_, &name, &type, &comment)) + if(::eolian_class_event_information_get(event_, &name, NULL, &comment)) { std::string name_ = safe_str(name); std::transform(name_.begin(), name_.end(), name_.begin(), [](int c) { return c != ',' ? c : '_'; }); event.name = normalize_spaces(name_); - event.eo_name = safe_upper(class_name(klass) + "_EVENT_" + event.name); + event.eo_name = safe_upper + (find_replace(class_full_name(klass), ".", "_") + "_EVENT_" + event.name); event.comment = safe_str(comment); } return event; -- 2.7.4