diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-08-23 20:33:54 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-08-23 20:53:20 +0900 |
commit | c071fd453b01809d4cf6adec4fa2b839e63ef32a (patch) | |
tree | cdf6634b8d14118db0d4f7dfe6d6d3f09823eac1 | |
parent | 876ad2481515b8f1e5317d6db77b1de865e92920 (diff) | |
download | efl-c071fd453b01809d4cf6adec4fa2b839e63ef32a.tar.gz |
eo: Mark name_find as const
The search should not require a mutable object.
See the previous commit on elm_widget.
-rw-r--r-- | src/lib/eo/efl_object.eo | 2 | ||||
-rw-r--r-- | 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; |