From c071fd453b01809d4cf6adec4fa2b839e63ef32a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Wed, 23 Aug 2017 20:33:54 +0900 Subject: [PATCH] eo: Mark name_find as const The search should not require a mutable object. See the previous commit on elm_widget. --- src/lib/eo/efl_object.eo | 2 +- src/lib/eo/eo_base_class.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/eo/efl_object.eo b/src/lib/eo/efl_object.eo index 5e7e1c31ca..d1dd10c4f9 100644 --- a/src/lib/eo/efl_object.eo +++ b/src/lib/eo/efl_object.eo @@ -164,7 +164,7 @@ abstract Efl.Object () [[Called at the end of #eo_add. Should not be called, just overridden.]] return: Efl.Object; [[The new object created, can be NULL if aborting]] } - name_find { + name_find @const { [[Find a child object with the given name and return it. The search string can be a glob (shell style, using *). It can also diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c index 5b3801abb2..da33114736 100644 --- a/src/lib/eo/eo_base_class.c +++ b/src/lib/eo/eo_base_class.c @@ -448,7 +448,7 @@ _ismultiglob(const char *match) } EOLIAN static Efl_Object * -_efl_object_name_find(Eo *obj EINA_UNUSED, Efl_Object_Data *pd, const char *search) +_efl_object_name_find(const Eo *obj EINA_UNUSED, Efl_Object_Data *pd, const char *search) { Eo *child; _Eo_Object *child_eo;