summaryrefslogtreecommitdiff
path: root/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/eolian_cxx/eolian_cxx_inherit_01.cc')
-rw-r--r--src/examples/eolian_cxx/eolian_cxx_inherit_01.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc b/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc
index bdfa3ad..b0fb169 100644
--- a/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc
+++ b/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc
@@ -23,7 +23,7 @@ struct ColourableCircle
23 int colour_get() 23 int colour_get()
24 { 24 {
25 int rgb = 0; 25 int rgb = 0;
26 eo_do_super(_eo_ptr(), _eo_class(), rgb = ::colourable_colour_get()); 26 rgb = ::colourable_colour_get(eo_super(_eo_ptr(), _eo_class()));
27 std::cout << "ColourableCircle::colour_get(" << this << ") ==> " 27 std::cout << "ColourableCircle::colour_get(" << this << ") ==> "
28 << std::hex << rgb << std::endl; 28 << std::hex << rgb << std::endl;
29 return rgb; 29 return rgb;
@@ -52,7 +52,7 @@ struct ColourableBar
52 int colour_get() 52 int colour_get()
53 { 53 {
54 int rgb = 0; 54 int rgb = 0;
55 eo_do_super(_eo_ptr(), _eo_class(), rgb = ::colourable_colour_get()); 55 rgb = ::colourable_colour_get(eo_super(_eo_ptr(), _eo_class()));
56 std::cout << "ColourableBar::colour_get(" << this << ") ==> " 56 std::cout << "ColourableBar::colour_get(" << this << ") ==> "
57 << std::hex << rgb << std::endl; 57 << std::hex << rgb << std::endl;
58 return rgb; 58 return rgb;