aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/edje
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/edje
parentecore_wl2: Synchronize state with surface commits (diff)
downloadefl-ccee1c0944bedf6c81cf40d0b3bcf42cd18cec66.tar.gz
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 'src/lib/edje')
-rw-r--r--src/lib/edje/edje_smart.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/edje/edje_smart.c b/src/lib/edje/edje_smart.c
index b660d352bd..7515d0a421 100644
--- a/src/lib/edje/edje_smart.c
+++ b/src/lib/edje/edje_smart.c
@@ -47,14 +47,13 @@ _edje_object_efl_object_constructor(Eo *obj, Edje *ed)
return obj;
}
-EOLIAN static Eina_Strbuf *
+EOLIAN static void
_edje_object_efl_object_debug_name_override(Eo *obj, Edje *ed, Eina_Strbuf *sb)
{
- sb = efl_debug_name_override(efl_super(obj, MY_CLASS), sb);
+ efl_debug_name_override(efl_super(obj, MY_CLASS), sb);
eina_strbuf_append_printf(sb, ":file='%s':group='%s'",
ed->file ? eina_file_filename_get(ed->file->f) : NULL,
ed->group);
- return sb;
}
EOLIAN static void