summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx/grammar/klass_def.hpp
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/lib/eolian_cxx/grammar/klass_def.hpp
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 '')
-rw-r--r--src/lib/eolian_cxx/grammar/klass_def.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eolian_cxx/grammar/klass_def.hpp b/src/lib/eolian_cxx/grammar/klass_def.hpp
index 3de453eb87..146bfbe861 100644
--- a/src/lib/eolian_cxx/grammar/klass_def.hpp
+++ b/src/lib/eolian_cxx/grammar/klass_def.hpp
@@ -687,10 +687,10 @@ struct klass_def
687 std::function<void(Eolian_Class const*)> inherit_algo = 687 std::function<void(Eolian_Class const*)> inherit_algo =
688 [&] (Eolian_Class const* klass) 688 [&] (Eolian_Class const* klass)
689 { 689 {
690 for(efl::eina::iterator<const char> inherit_iterator ( ::eolian_class_inherits_get(klass)) 690 for(efl::eina::iterator<Eolian_Class const> inherit_iterator ( ::eolian_class_inherits_get(klass))
691 , inherit_last; inherit_iterator != inherit_last; ++inherit_iterator) 691 , inherit_last; inherit_iterator != inherit_last; ++inherit_iterator)
692 { 692 {
693 Eolian_Class const* inherit = ::eolian_class_get_by_name(unit, &*inherit_iterator); 693 Eolian_Class const* inherit = &*inherit_iterator;
694 inherits.insert({inherit, {}}); 694 inherits.insert({inherit, {}});
695 inherit_algo(inherit); 695 inherit_algo(inherit);
696 } 696 }