From: Tom Hacohen Date: Tue, 3 Jun 2014 09:16:04 +0000 (+0100) Subject: Eolian cxx: Fix it to use the right class names. X-Git-Tag: upstream/1.10.0+1149+ga3a15b1~725 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=62a3522fcc4bbb6389d1c81b439cf9cc2f4a4e28;p=platform%2Fupstream%2Fefl.git Eolian cxx: Fix it to use the right class names. This is following the class name change in normal eolian. --- diff --git a/src/bin/eolian_cxx/convert.cc b/src/bin/eolian_cxx/convert.cc index f3a6392..588639e 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) 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);