forked from enlightenment/efl
Eobj: Change obj of eobj_data_get to be const.
Thanks to Daniel Zaoui for the report. SVN revision: 70325
This commit is contained in:
parent
11361eae41
commit
a59a972f8b
|
@ -368,7 +368,7 @@ EAPI Eobj *eobj_parent_get(Eobj *obj);
|
|||
* @param klass the klass associated with the data.
|
||||
* @return a pointer to the data.
|
||||
*/
|
||||
EAPI void *eobj_data_get(Eobj *obj, const Eobj_Class *klass);
|
||||
EAPI void *eobj_data_get(const Eobj *obj, const Eobj_Class *klass);
|
||||
|
||||
/**
|
||||
* @brief Increment the object's reference count by 1.
|
||||
|
|
|
@ -1140,7 +1140,7 @@ eobj_destructor_super(Eobj *obj)
|
|||
}
|
||||
|
||||
EAPI void *
|
||||
eobj_data_get(Eobj *obj, const Eobj_Class *klass)
|
||||
eobj_data_get(const Eobj *obj, const Eobj_Class *klass)
|
||||
{
|
||||
/* FIXME: Add a check that this is of the right klass and we don't seg.
|
||||
* Probably just return NULL. */
|
||||
|
|
Loading…
Reference in New Issue