diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-01-18 18:20:16 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-01-22 23:01:49 +0000 |
commit | cfd204824fada7d2b4bcf4994c4200ae9b5a8b26 (patch) | |
tree | c4497f1fca6f7230666635b1779c75c4b14cd91f /src/cairo-xml-surface.c | |
parent | 3e17c559b04e2df208f28125746d7e0acfb4b476 (diff) |
Constify stroke style and matrices.
As a simple step to ensure that we do not inadvertently modify (or at least
generate compiler warns if we try) user data, mark the incoming style
and matrices as constant.
Diffstat (limited to 'src/cairo-xml-surface.c')
-rw-r--r-- | src/cairo-xml-surface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-xml-surface.c b/src/cairo-xml-surface.c index f32ea9d6..d7d9b569 100644 --- a/src/cairo-xml-surface.c +++ b/src/cairo-xml-surface.c @@ -756,9 +756,9 @@ _cairo_xml_surface_stroke (void *abstract_surface, cairo_operator_t op, const cairo_pattern_t *source, cairo_path_fixed_t *path, - cairo_stroke_style_t *style, - cairo_matrix_t *ctm, - cairo_matrix_t *ctm_inverse, + const cairo_stroke_style_t *style, + const cairo_matrix_t *ctm, + const cairo_matrix_t *ctm_inverse, double tolerance, cairo_antialias_t antialias, cairo_clip_t *clip) |