summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-06-03 10:16:04 +0100
committerTom Hacohen <tom@stosb.com>2014-06-03 11:28:01 +0100
commit62a3522fcc4bbb6389d1c81b439cf9cc2f4a4e28 (patch)
tree568e425601d9b47453bc54974547f9d4c34c677c /src/bin/eolian_cxx
parent03647b42795296dbc4612fbd85b2c31f5318b45f (diff)
Eolian cxx: Fix it to use the right class names.
This is following the class name change in normal eolian.
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/convert.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bin/eolian_cxx/convert.cc b/src/bin/eolian_cxx/convert.cc
index f3a639242a..588639e0b7 100644
--- a/src/bin/eolian_cxx/convert.cc
+++ b/src/bin/eolian_cxx/convert.cc
@@ -271,9 +271,8 @@ _cxx_new(const Eolian_Class klass)
271 else if (cls_type == EOLIAN_CLASS_MIXIN) cls.type = eo_class::mixin_; 271 else if (cls_type == EOLIAN_CLASS_MIXIN) cls.type = eo_class::mixin_;
272 else if (cls_type == EOLIAN_CLASS_INTERFACE) cls.type = eo_class::interface_; 272 else if (cls_type == EOLIAN_CLASS_INTERFACE) cls.type = eo_class::interface_;
273 else { assert(false); } 273 else { assert(false); }
274 std::string prefix(safe_str(eolian_class_eo_prefix_get(klass)));
275 cls.name = eolian_class_name_get(klass); 274 cls.name = eolian_class_name_get(klass);
276 cls.eo_name = (prefix != "" ? prefix : cls.name) + "_CLASS"; 275 cls.eo_name = cls.name + "_CLASS";
277 cls.comment = detail::eolian_class_comment(klass); 276 cls.comment = detail::eolian_class_comment(klass);
278 std::transform(cls.name.begin(), cls.name.end(), cls.name.begin(), ::tolower); 277 std::transform(cls.name.begin(), cls.name.end(), cls.name.begin(), ::tolower);
279 std::transform(cls.eo_name.begin(), cls.eo_name.end(), cls.eo_name.begin(), ::toupper); 278 std::transform(cls.eo_name.begin(), cls.eo_name.end(), cls.eo_name.begin(), ::toupper);