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-stroke-style.c | |
parent | 3e17c559b04e2df208f28125746d7e0acfb4b476 (diff) | |
download | cairo-cfd204824fada7d2b4bcf4994c4200ae9b5a8b26.tar.gz |
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-stroke-style.c')
-rw-r--r-- | src/cairo-stroke-style.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-stroke-style.c b/src/cairo-stroke-style.c index eac69dbb1..6ef85f4ba 100644 --- a/src/cairo-stroke-style.c +++ b/src/cairo-stroke-style.c @@ -53,7 +53,7 @@ _cairo_stroke_style_init (cairo_stroke_style_t *style) cairo_status_t _cairo_stroke_style_init_copy (cairo_stroke_style_t *style, - cairo_stroke_style_t *other) + const cairo_stroke_style_t *other) { if (CAIRO_INJECT_FAULT ()) return _cairo_error (CAIRO_STATUS_NO_MEMORY); |