summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx/eolian_wrappers.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/eolian_cxx/eolian_wrappers.hh')
-rw-r--r--src/bin/eolian_cxx/eolian_wrappers.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/eolian_cxx/eolian_wrappers.hh b/src/bin/eolian_cxx/eolian_wrappers.hh
index 6269f37fef..7f10b49e0d 100644
--- a/src/bin/eolian_cxx/eolian_wrappers.hh
+++ b/src/bin/eolian_cxx/eolian_wrappers.hh
@@ -351,8 +351,8 @@ inline efl::eolian::eo_event
351event_create(Eolian_Class const& klass, const Eolian_Event *event_) 351event_create(Eolian_Class const& klass, const Eolian_Event *event_)
352{ 352{
353 efl::eolian::eo_event event; 353 efl::eolian::eo_event event;
354 const char *name, *comment; 354 const char *name = ::eolian_event_name_get(event_);
355 if(::eolian_class_event_information_get(event_, &name, NULL, &comment)) 355 if (name)
356 { 356 {
357 std::string name_ = safe_str(name); 357 std::string name_ = safe_str(name);
358 std::transform(name_.begin(), name_.end(), name_.begin(), 358 std::transform(name_.begin(), name_.end(), name_.begin(),
@@ -360,7 +360,7 @@ event_create(Eolian_Class const& klass, const Eolian_Event *event_)
360 event.name = normalize_spaces(name_); 360 event.name = normalize_spaces(name_);
361 event.eo_name = safe_upper 361 event.eo_name = safe_upper
362 (find_replace(class_full_name(klass), ".", "_") + "_EVENT_" + event.name); 362 (find_replace(class_full_name(klass), ".", "_") + "_EVENT_" + event.name);
363 event.comment = safe_str(comment); 363 event.comment = safe_str(eolian_event_description_get(event_));
364 } 364 }
365 return event; 365 return event;
366} 366}