jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=66256028d5d6c8775338cfd0201a9b56d9bdbf6a

commit 66256028d5d6c8775338cfd0201a9b56d9bdbf6a
Author: Daniel Zaoui <daniel.za...@yahoo.com>
Date:   Fri Mar 4 13:48:56 2016 +0200

    Eo: set object as const for key_data_get
    
    Due to Eo4 changes, const is now important for this function.
---
 src/lib/eo/eo_base.eo      | 2 +-
 src/lib/eo/eo_base_class.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/eo/eo_base.eo b/src/lib/eo/eo_base.eo
index 29a1531..2dfd6ab 100644
--- a/src/lib/eo/eo_base.eo
+++ b/src/lib/eo/eo_base.eo
@@ -140,7 +140,7 @@ abstract Eo.Base ()
             @in data: const(void)*; [[the data to set]]
          }
       }
-      key_data_get {
+      key_data_get @const {
          [[Get generic data from object.]]
          params {
             @in key: const(char)*; [[the key associated with the data]]
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 065c77e..665f684 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -77,7 +77,7 @@ _eo_base_key_data_set(Eo *obj, Eo_Base_Data *pd,
 }
 
 EOLIAN static void *
-_eo_base_key_data_get(Eo *obj EINA_UNUSED, Eo_Base_Data *pd, const char *key)
+_eo_base_key_data_get(const Eo *obj EINA_UNUSED, Eo_Base_Data *pd, const char 
*key)
 {
    /* We don't really change it... */
    Eo_Generic_Data_Node *node;

-- 


Reply via email to