eo: Mark name_find as const

The search should not require a mutable object.
See the previous commit on elm_widget.
This commit is contained in:
Jean-Philippe Andre 2017-08-23 20:33:54 +09:00
parent 876ad24815
commit c071fd453b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;