summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorSavio Sena <savio.sena@acm.org>2014-07-17 04:05:30 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2014-07-18 18:57:13 -0300
commit5d61edabd8385f010b45192d83c784b07da86dbc (patch)
treea1e8290ba57e3630061126b3b965d790d3a27af1 /src/bin/eolian_cxx
parentb9c30eac7144c918b4ffc12b25d09bcac7f3ea6c (diff)
eolian-cxx: Fixed the translation of classnames
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/eolian_wrappers.hh7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/bin/eolian_cxx/eolian_wrappers.hh b/src/bin/eolian_cxx/eolian_wrappers.hh
index 79544286c6..1b26a35dc2 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_)
316{ 316{
317 efl::eolian::eo_event event; 317 efl::eolian::eo_event event;
318 const char *name, *comment; 318 const char *name, *comment;
319 const Eolian_Type *type; 319 if(::eolian_class_event_information_get(event_, &name, NULL, &comment))
320 static_cast<void>(type); // XXX
321 if(::eolian_class_event_information_get(event_, &name, &type, &comment))
322 { 320 {
323 std::string name_ = safe_str(name); 321 std::string name_ = safe_str(name);
324 std::transform(name_.begin(), name_.end(), name_.begin(), 322 std::transform(name_.begin(), name_.end(), name_.begin(),
325 [](int c) { return c != ',' ? c : '_'; }); 323 [](int c) { return c != ',' ? c : '_'; });
326 event.name = normalize_spaces(name_); 324 event.name = normalize_spaces(name_);
327 event.eo_name = safe_upper(class_name(klass) + "_EVENT_" + event.name); 325 event.eo_name = safe_upper
326 (find_replace(class_full_name(klass), ".", "_") + "_EVENT_" + event.name);
328 event.comment = safe_str(comment); 327 event.comment = safe_str(comment);
329 } 328 }
330 return event; 329 return event;