summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/examples/box_cxx_example_02.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/examples/box_cxx_example_02.cc b/src/examples/box_cxx_example_02.cc
index 26934f91d..9b88c8c46 100644
--- a/src/examples/box_cxx_example_02.cc
+++ b/src/examples/box_cxx_example_02.cc
@@ -70,7 +70,7 @@ _test_box_transition_change(void *data)
70 box->layout_set(elm_box_layout_transition, layout_data, 70 box->layout_set(elm_box_layout_transition, layout_data,
71 elm_box_transition_free); 71 elm_box_transition_free);
72 tdata->last_layout = next_layout; 72 tdata->last_layout = next_layout;
73 73
74 tdata->transitions.push_back(tdata->transitions[0]); 74 tdata->transitions.push_back(tdata->transitions[0]);
75 tdata->transitions.pop_front(); 75 tdata->transitions.pop_front();
76 } 76 }
@@ -107,10 +107,10 @@ elm_main(int argc, char *argv[])
107 { 107 {
108 elm_button btn ( efl::eo::parent = *box ); 108 elm_button btn ( efl::eo::parent = *box );
109 btn.text_set("elm.text", "I do nothing"); 109 btn.text_set("elm.text", "I do nothing");
110 efl::eina::list<evas::object> childrens(box->children_get()); 110 auto childrens(box->children_get());
111 if (!childrens.empty()) 111 if (!childrens->empty())
112 { 112 {
113 box->pack_after(btn, childrens.front()); 113 box->pack_after(btn, childrens->front());
114 } 114 }
115 else 115 else
116 box->pack_end(btn); 116 box->pack_end(btn);