From: Enlightenment S. <no-...@en...> - 2012-04-19 08:56:41
|
Log: Eobj: Change obj of eobj_data_get to be const. Thanks to Daniel Zaoui for the report. Author: tasn Date: 2012-04-19 01:56:29 -0700 (Thu, 19 Apr 2012) New Revision: 70325 Trac: http://trac.enlightenment.org/e/changeset/70325 Modified: trunk/PROTO/eobj/lib/Eobj.h trunk/PROTO/eobj/lib/eobj.c Modified: trunk/PROTO/eobj/lib/Eobj.h =================================================================== --- trunk/PROTO/eobj/lib/Eobj.h 2012-04-19 08:52:25 UTC (rev 70324) +++ trunk/PROTO/eobj/lib/Eobj.h 2012-04-19 08:56:29 UTC (rev 70325) @@ -368,7 +368,7 @@ * @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. Modified: trunk/PROTO/eobj/lib/eobj.c =================================================================== --- trunk/PROTO/eobj/lib/eobj.c 2012-04-19 08:52:25 UTC (rev 70324) +++ trunk/PROTO/eobj/lib/eobj.c 2012-04-19 08:56:29 UTC (rev 70325) @@ -1140,7 +1140,7 @@ } 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. */ |