[cairo-commit] src/cairo.c src/cairo-gstate.c src/cairo.h src/cairoint.h

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Jul 27 12:20:20 PDT 2006


 src/cairo-gstate.c |    2 +-
 src/cairo.c        |    8 ++++----
 src/cairo.h        |    8 ++++----
 src/cairoint.h     |    2 +-
 4 files changed, 10 insertions(+), 10 deletions(-)

New commits:
diff-tree e5f4b922618ca2e56d6a66e20761e78d42211ec9 (from e92d693e073dc5fba871b615909206f0049ead41)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Jul 27 15:20:14 2006 -0400

    Make "double *dash" argument const in cairo_set_dash

diff --git a/src/cairo-gstate.c b/src/cairo-gstate.c
index f852d50..be1082b 100644
--- a/src/cairo-gstate.c
+++ b/src/cairo-gstate.c
@@ -492,7 +492,7 @@ _cairo_gstate_get_line_join (cairo_gstat
 }
 
 cairo_status_t
-_cairo_gstate_set_dash (cairo_gstate_t *gstate, double *dash, int num_dashes, double offset)
+_cairo_gstate_set_dash (cairo_gstate_t *gstate, const double *dash, int num_dashes, double offset)
 {
     int i;
     double dash_total;
diff --git a/src/cairo.c b/src/cairo.c
index 551de6f..76f4831 100644
--- a/src/cairo.c
+++ b/src/cairo.c
@@ -928,10 +928,10 @@ cairo_set_line_join (cairo_t *cr, cairo_
  * #CAIRO_STATUS_INVALID_DASH.
  **/
 void
-cairo_set_dash (cairo_t	*cr,
-		double	*dashes,
-		int	 num_dashes,
-		double	 offset)
+cairo_set_dash (cairo_t	     *cr,
+		const double *dashes,
+		int	      num_dashes,
+		double	      offset)
 {
     if (cr->status)
 	return;
diff --git a/src/cairo.h b/src/cairo.h
index e5349c9..7ec249f 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -418,10 +418,10 @@ cairo_public void
 cairo_set_line_join (cairo_t *cr, cairo_line_join_t line_join);
 
 cairo_public void
-cairo_set_dash (cairo_t	*cr,
-		double	*dashes,
-		int	 num_dashes,
-		double	 offset);
+cairo_set_dash (cairo_t      *cr,
+		const double *dashes,
+		int	      num_dashes,
+		double	      offset);
 
 cairo_public void
 cairo_set_miter_limit (cairo_t *cr, double limit);
diff --git a/src/cairoint.h b/src/cairoint.h
index 9ecb072..4eb0c3c 100644
--- a/src/cairoint.h
+++ b/src/cairoint.h
@@ -1162,7 +1162,7 @@ cairo_private cairo_line_join_t
 _cairo_gstate_get_line_join (cairo_gstate_t *gstate);
 
 cairo_private cairo_status_t
-_cairo_gstate_set_dash (cairo_gstate_t *gstate, double *dash, int num_dashes, double offset);
+_cairo_gstate_set_dash (cairo_gstate_t *gstate, const double *dash, int num_dashes, double offset);
 
 cairo_private cairo_status_t
 _cairo_gstate_set_miter_limit (cairo_gstate_t *gstate, double limit);


More information about the cairo-commit mailing list