summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-10-13 10:54:54 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-10-13 10:57:00 +0900
commitccee1c0944bedf6c81cf40d0b3bcf42cd18cec66 (patch)
tree34b2b4a59f7c4946c87b4c5d7d2ebe3eda70dca2 /src/lib/elementary/efl_ui_win.c
parent10b63836403ca8879f8f371b1ff60892e5ae3405 (diff)
eo: Simplify debug_name_override
Simply pass in the strbuf and don't expect the callee to own it. This makes things simpler and safer (it'll crash only if the callee frees said strbuf, and shouldn't leak). efl_ebug_name is new in the upcoming release, EFL 1.21. Realised this after talking with Amitesh. Thanks. See 999dbd9764426890c0e11841358f9219082b89b2 And c4769ff8989bab2b745017b843f073e5737e91e0
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_ui_win.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index d3ef9f3ede..bc66ecedf0 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -6658,12 +6658,11 @@ _efl_ui_win_class_constructor(Efl_Class *klass)
6658 } 6658 }
6659} 6659}
6660 6660
6661EOLIAN static Eina_Strbuf * 6661EOLIAN static void
6662_efl_ui_win_efl_object_debug_name_override(Eo *obj, Efl_Ui_Win_Data *pd, Eina_Strbuf *sb) 6662_efl_ui_win_efl_object_debug_name_override(Eo *obj, Efl_Ui_Win_Data *pd, Eina_Strbuf *sb)
6663{ 6663{
6664 sb = efl_debug_name_override(efl_super(obj, MY_CLASS), sb); 6664 efl_debug_name_override(efl_super(obj, MY_CLASS), sb);
6665 eina_strbuf_append_printf(sb, ":'%s':'%s'", pd->name, pd->title); 6665 eina_strbuf_append_printf(sb, ":'%s':'%s'", pd->name, pd->title);
6666 return sb;
6667} 6666}
6668 6667
6669EOLIAN static Eo* 6668EOLIAN static Eo*