summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@yahoo.com>2016-03-04 13:48:56 +0200
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2016-03-04 13:55:07 +0200
commit66256028d5d6c8775338cfd0201a9b56d9bdbf6a (patch)
tree2c636127abacf6e5d2021c4b383a9c248c2936c6 /src
parent0dca76798ef83672f3c1f90ed024de55086d346e (diff)
Eo: set object as const for key_data_get
Due to Eo4 changes, const is now important for this function.
Diffstat (limited to 'src')
-rw-r--r--src/lib/eo/eo_base.eo2
-rw-r--r--src/lib/eo/eo_base_class.c2
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 ()
140 @in data: const(void)*; [[the data to set]] 140 @in data: const(void)*; [[the data to set]]
141 } 141 }
142 } 142 }
143 key_data_get { 143 key_data_get @const {
144 [[Get generic data from object.]] 144 [[Get generic data from object.]]
145 params { 145 params {
146 @in key: const(char)*; [[the key associated with the data]] 146 @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,
77} 77}
78 78
79EOLIAN static void * 79EOLIAN static void *
80_eo_base_key_data_get(Eo *obj EINA_UNUSED, Eo_Base_Data *pd, const char *key) 80_eo_base_key_data_get(const Eo *obj EINA_UNUSED, Eo_Base_Data *pd, const char *key)
81{ 81{
82 /* We don't really change it... */ 82 /* We don't really change it... */
83 Eo_Generic_Data_Node *node; 83 Eo_Generic_Data_Node *node;