summaryrefslogtreecommitdiff
path: root/src/lib/edje
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/edje
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 'src/lib/edje')
-rw-r--r--src/lib/edje/edje_object.eo2
-rw-r--r--src/lib/edje/edje_smart.c15
2 files changed, 8 insertions, 9 deletions
diff --git a/src/lib/edje/edje_object.eo b/src/lib/edje/edje_object.eo
index c294d43f66..be6d2e2a00 100644
--- a/src/lib/edje/edje_object.eo
+++ b/src/lib/edje/edje_object.eo
@@ -1176,7 +1176,7 @@ class Edje.Object (Efl.Canvas.Group.Clipped, Efl.File, Efl.Container, Efl.Part,
1176 Efl.Gfx.size { set; } 1176 Efl.Gfx.size { set; }
1177 Efl.Object.constructor; 1177 Efl.Object.constructor;
1178 Efl.Object.destructor; 1178 Efl.Object.destructor;
1179 Efl.Object.debug_name_override { get; } 1179 Efl.Object.debug_name_override;
1180 Efl.Canvas.Object.no_render { set; } 1180 Efl.Canvas.Object.no_render { set; }
1181 Efl.Canvas.Object.paragraph_direction { set; } 1181 Efl.Canvas.Object.paragraph_direction { set; }
1182 Efl.Canvas.Group.group_calculate; 1182 Efl.Canvas.Group.group_calculate;
diff --git a/src/lib/edje/edje_smart.c b/src/lib/edje/edje_smart.c
index 4f105ff595..070efff883 100644
--- a/src/lib/edje/edje_smart.c
+++ b/src/lib/edje/edje_smart.c
@@ -60,15 +60,14 @@ _edje_object_efl_object_destructor(Eo *obj, Edje *class_data)
60 efl_data_unref(obj, class_data->base); 60 efl_data_unref(obj, class_data->base);
61} 61}
62 62
63EOLIAN static const char * 63EOLIAN static Eina_Strbuf *
64_edje_object_efl_object_debug_name_override_get(Eo *obj, Edje *ed) 64_edje_object_efl_object_debug_name_override(Eo *obj, Edje *ed, Eina_Strbuf *sb)
65{ 65{
66 const char *base; 66 sb = efl_debug_name_override(efl_super(obj, MY_CLASS), sb);
67 67 eina_strbuf_append_printf(sb, ":file='%s':group='%s'",
68 base = efl_debug_name_get(efl_super(obj, MY_CLASS)); 68 ed->file ? eina_file_filename_get(ed->file->f) : NULL,
69 return eina_slstr_printf("%s:file='%s':group='%s'", base, 69 ed->group);
70 ed->file ? eina_file_filename_get(ed->file->f) : NULL, 70 return sb;
71 ed->group);
72} 71}
73 72
74EOLIAN static void 73EOLIAN static void