summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-07-21 15:24:08 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-04 10:24:03 +0900
commit999dbd9764426890c0e11841358f9219082b89b2 (patch)
tree2d43a51df243061ee5e7f506c0dbc38410cc304f /src/lib/elementary/efl_ui_win.c
parent569ad0bac4590e8a18800741ea2345174c3683f3 (diff)
eo debug name: Use strbuf instead of slstr
This should be a little bit more efficient, even if more "risky" in terms of leaks. The final API still looks exactly the same.
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_ui_win.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 7456cb87d4..e9ecc3c145 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -6608,13 +6608,12 @@ _efl_ui_win_class_constructor(Efl_Class *klass)
6608 } 6608 }
6609} 6609}
6610 6610
6611EOLIAN static const char * 6611EOLIAN static Eina_Strbuf *
6612_efl_ui_win_efl_object_debug_name_override_get(Eo *obj, Efl_Ui_Win_Data *pd) 6612_efl_ui_win_efl_object_debug_name_override(Eo *obj, Efl_Ui_Win_Data *pd, Eina_Strbuf *sb)
6613{ 6613{
6614 const char *base; 6614 sb = efl_debug_name_override(efl_super(obj, MY_CLASS), sb);
6615 6615 eina_strbuf_append_printf(sb, ":'%s':'%s'", pd->name, pd->title);
6616 base = efl_debug_name_get(efl_super(obj, MY_CLASS)); 6616 return sb;
6617 return eina_slstr_printf("%s:'%s':'%s'", base, pd->name, pd->title);
6618} 6617}
6619 6618
6620EOLIAN static Eo* 6619EOLIAN static Eo*