diff options
author | Jeff Muizelaar <jmuizelaar@mozilla.com> | 2009-02-18 18:43:29 -0500 |
---|---|---|
committer | Jeff Muizelaar <jmuizelaar@mozilla.com> | 2009-02-18 18:43:29 -0500 |
commit | 06fa7a8386b267fdbd7635b952adc75a58f62584 (patch) | |
tree | b152656f3f8a58a4d8e8c58904f3596551776e0a /src | |
parent | f7b3c9df5885a1cd7981ee12b91962bdbfff47af (diff) |
Fix a const warning in _cairo_user_data_array_foreach()
_cairo_user_data_array_foreach() was taking a function
with a void *key parameter instead of a const void *key
to match cairo_user_data_slot_t.
Diffstat (limited to 'src')
-rw-r--r-- | src/cairo-array.c | 2 | ||||
-rw-r--r-- | src/cairo-surface.c | 2 | ||||
-rw-r--r-- | src/cairoint.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-array.c b/src/cairo-array.c index 70c16465..318fd07e 100644 --- a/src/cairo-array.c +++ b/src/cairo-array.c @@ -515,7 +515,7 @@ _cairo_user_data_array_copy (cairo_user_data_array_t *dst, void _cairo_user_data_array_foreach (cairo_user_data_array_t *array, - void (*func) (void *key, + void (*func) (const void *key, void *elt, void *closure), void *closure) diff --git a/src/cairo-surface.c b/src/cairo-surface.c index 6f522fc4..456f8518 100644 --- a/src/cairo-surface.c +++ b/src/cairo-surface.c @@ -716,7 +716,7 @@ cairo_surface_set_mime_data (cairo_surface_t *surface, slim_hidden_def (cairo_surface_set_mime_data); static void -_cairo_mime_data_reference (void *key, void *elt, void *closure) +_cairo_mime_data_reference (const void *key, void *elt, void *closure) { cairo_mime_data_t *mime_data = elt; diff --git a/src/cairoint.h b/src/cairoint.h index bfcaaa93..b550f867 100644 --- a/src/cairoint.h +++ b/src/cairoint.h @@ -336,7 +336,7 @@ _cairo_user_data_array_copy (cairo_user_data_array_t *dst, cairo_private void _cairo_user_data_array_foreach (cairo_user_data_array_t *array, - void (*func) (void *key, + void (*func) (const void *key, void *elt, void *closure), void *closure); |