diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-07-14 18:43:06 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2017-07-14 18:43:00 -0400 |
commit | 47ddbede05c932cfd5a980d6743df87d351788e8 (patch) | |
tree | 6df0fb91f8eddadc25bfeb9e6156f1cd9601ea0c /src/lib | |
parent | 02bbcabd3f6e1a8946a9b3db8eb1d04dfbbef70c (diff) | |
download | efl-47ddbede05c932cfd5a980d6743df87d351788e8.tar.gz |
eina: make tiler function params const where appropriate
stop throwing warnings when passing const params to functions which don't
modify the params
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/eina/eina_tiler.c | 6 | ||||
-rw-r--r-- | src/lib/eina/eina_tiler.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/eina/eina_tiler.c b/src/lib/eina/eina_tiler.c index fa9a092289..9e7635b459 100644 --- a/src/lib/eina/eina_tiler.c +++ b/src/lib/eina/eina_tiler.c @@ -1199,7 +1199,7 @@ EAPI void eina_tiler_tile_size_set(Eina_Tiler *t, int w, int h) } EAPI Eina_Bool -eina_tiler_empty(Eina_Tiler *t) +eina_tiler_empty(const Eina_Tiler *t) { EINA_MAGIC_CHECK_TILER(t, EINA_TRUE); return ((!t->splitter.rects.head) && (!t->splitter.rects.tail)); @@ -1528,8 +1528,8 @@ cleanup: } EAPI Eina_Bool -eina_tiler_equal(Eina_Tiler *t1, - Eina_Tiler *t2) +eina_tiler_equal(const Eina_Tiler *t1, + const Eina_Tiler *t2) { Eina_Iterator *itr1 = NULL, *itr2 = NULL; Eina_Rectangle *rect1 = NULL, *rect2 = NULL; diff --git a/src/lib/eina/eina_tiler.h b/src/lib/eina/eina_tiler.h index 484d347782..6c11a7949d 100644 --- a/src/lib/eina/eina_tiler.h +++ b/src/lib/eina/eina_tiler.h @@ -250,7 +250,7 @@ EAPI void eina_tiler_strict_set(Eina_Tiler *t, Eina_Bool strict); * * @since 1.8 */ -EAPI Eina_Bool eina_tiler_empty(Eina_Tiler *t); +EAPI Eina_Bool eina_tiler_empty(const Eina_Tiler *t); /** * @brief Adds a rectangle to a tiler. @@ -359,7 +359,7 @@ EAPI Eina_Tiler *eina_tiler_intersection(Eina_Tiler *t1, Eina_Tiler *t2); * It returns #EINA_TRUE if tilers are equal. * @since 1.11 */ -EAPI Eina_Bool eina_tiler_equal(Eina_Tiler *t1, Eina_Tiler *t2); +EAPI Eina_Bool eina_tiler_equal(const Eina_Tiler *t1, const Eina_Tiler *t2); /** * @brief Iterates over the tiles set by eina_tile_grid_slicer_setup(). |