summaryrefslogtreecommitdiff
path: root/src/lib/eo
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-23 20:33:54 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-23 20:53:20 +0900
commitc071fd453b01809d4cf6adec4fa2b839e63ef32a (patch)
treecdf6634b8d14118db0d4f7dfe6d6d3f09823eac1 /src/lib/eo
parent876ad2481515b8f1e5317d6db77b1de865e92920 (diff)
eo: Mark name_find as const
The search should not require a mutable object. See the previous commit on elm_widget.
Diffstat (limited to 'src/lib/eo')
-rw-r--r--src/lib/eo/efl_object.eo2
-rw-r--r--src/lib/eo/eo_base_class.c2
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 ()
164 [[Called at the end of #eo_add. Should not be called, just overridden.]] 164 [[Called at the end of #eo_add. Should not be called, just overridden.]]
165 return: Efl.Object; [[The new object created, can be NULL if aborting]] 165 return: Efl.Object; [[The new object created, can be NULL if aborting]]
166 } 166 }
167 name_find { 167 name_find @const {
168 [[Find a child object with the given name and return it. 168 [[Find a child object with the given name and return it.
169 169
170 The search string can be a glob (shell style, using *). It can also 170 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)
448} 448}
449 449
450EOLIAN static Efl_Object * 450EOLIAN static Efl_Object *
451_efl_object_name_find(Eo *obj EINA_UNUSED, Efl_Object_Data *pd, const char *search) 451_efl_object_name_find(const Eo *obj EINA_UNUSED, Efl_Object_Data *pd, const char *search)
452{ 452{
453 Eo *child; 453 Eo *child;
454 _Eo_Object *child_eo; 454 _Eo_Object *child_eo;