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:
Tom Hacohen 2012-04-19 08:56:29 +00:00
parent 11361eae41
commit a59a972f8b
2 changed files with 2 additions and 2 deletions

View File

@ -368,7 +368,7 @@ EAPI Eobj *eobj_parent_get(Eobj *obj);
* @param klass the klass associated with the data. * @param klass the klass associated with the data.
* @return a pointer to 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. * @brief Increment the object's reference count by 1.

View File

@ -1140,7 +1140,7 @@ eobj_destructor_super(Eobj *obj)
} }
EAPI void * 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. /* FIXME: Add a check that this is of the right klass and we don't seg.
* Probably just return NULL. */ * Probably just return NULL. */