Eolian cxx: Fix it to use the right class names.

This is following the class name change in normal eolian.
This commit is contained in:
Tom Hacohen 2014-06-03 10:16:04 +01:00
parent 03647b4279
commit 62a3522fcc
1 changed files with 1 additions and 2 deletions

View File

@ -271,9 +271,8 @@ _cxx_new(const Eolian_Class klass)
else if (cls_type == EOLIAN_CLASS_MIXIN) cls.type = eo_class::mixin_;
else if (cls_type == EOLIAN_CLASS_INTERFACE) cls.type = eo_class::interface_;
else { assert(false); }
std::string prefix(safe_str(eolian_class_eo_prefix_get(klass)));
cls.name = eolian_class_name_get(klass);
cls.eo_name = (prefix != "" ? prefix : cls.name) + "_CLASS";
cls.eo_name = cls.name + "_CLASS";
cls.comment = detail::eolian_class_comment(klass);
std::transform(cls.name.begin(), cls.name.end(), cls.name.begin(), ::tolower);
std::transform(cls.eo_name.begin(), cls.eo_name.end(), cls.eo_name.begin(), ::toupper);