[cairo-commit] src/cairo-array.c src/cairoint.h src/cairo-surface.c

Jeff Muizelaar jrmuizel at kemper.freedesktop.org
Wed Feb 18 15:48:19 PST 2009


 src/cairo-array.c   |    2 +-
 src/cairo-surface.c |    2 +-
 src/cairoint.h      |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 06fa7a8386b267fdbd7635b952adc75a58f62584
Author: Jeff Muizelaar <jmuizelaar at mozilla.com>
Date:   Wed Feb 18 18:43:29 2009 -0500

    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.

diff --git a/src/cairo-array.c b/src/cairo-array.c
index 70c1646..318fd07 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 6f522fc..456f851 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 bfcaaa9..b550f86 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);


More information about the cairo-commit mailing list