summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-10-25 16:23:57 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-10-25 16:25:41 +0200
commit4f8a9b50f405bad270a6ec37cf8c064ba408f86e (patch)
tree087279688ba04714a3e4e9994ecef2297ed7224e /src/bin/eolian_cxx
parenta4c96ceb73ec714cd7def72979c3d3db84407357 (diff)
eolian: make inherits_get return a list of classes, not strings
Most of the time you need to retrieve the class from the string anyway, so remove this relic of old Eolian and gain some small performance benefits and extra convenience. Subtly breaks API but everything should be updated.
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/eolian_cxx.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/eolian_cxx/eolian_cxx.cc b/src/bin/eolian_cxx/eolian_cxx.cc
index c98412aedd..34b8bbc3ab 100644
--- a/src/bin/eolian_cxx/eolian_cxx.cc
+++ b/src/bin/eolian_cxx/eolian_cxx.cc
@@ -114,10 +114,10 @@ generate(const Eolian_Class* klass, eolian_cxx::options_type const& opts)
114 std::function<void(Eolian_Class const*)> klass_function 114 std::function<void(Eolian_Class const*)> klass_function
115 = [&] (Eolian_Class const* klass) 115 = [&] (Eolian_Class const* klass)
116 { 116 {
117 for(efl::eina::iterator<const char> inherit_iterator ( ::eolian_class_inherits_get(klass)) 117 for(efl::eina::iterator<Eolian_Class const> inherit_iterator ( ::eolian_class_inherits_get(klass))
118 , inherit_last; inherit_iterator != inherit_last; ++inherit_iterator) 118 , inherit_last; inherit_iterator != inherit_last; ++inherit_iterator)
119 { 119 {
120 Eolian_Class const* inherit = ::eolian_class_get_by_name(opts.unit, &*inherit_iterator); 120 Eolian_Class const* inherit = &*inherit_iterator;
121 c_headers.insert(eolian_class_file_get(inherit) + std::string(".h")); 121 c_headers.insert(eolian_class_file_get(inherit) + std::string(".h"));
122 cpp_headers.insert(eolian_class_file_get(inherit) + std::string(".hh")); 122 cpp_headers.insert(eolian_class_file_get(inherit) + std::string(".hh"));
123 efl::eolian::grammar::attributes::klass_def klass{inherit, opts.unit}; 123 efl::eolian::grammar::attributes::klass_def klass{inherit, opts.unit};