summaryrefslogtreecommitdiff
path: root/src/cairo-pdf-surface-private.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-01-18 18:20:16 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-01-22 23:01:49 +0000
commitcfd204824fada7d2b4bcf4994c4200ae9b5a8b26 (patch)
treec4497f1fca6f7230666635b1779c75c4b14cd91f /src/cairo-pdf-surface-private.h
parent3e17c559b04e2df208f28125746d7e0acfb4b476 (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-pdf-surface-private.h')
-rw-r--r--src/cairo-pdf-surface-private.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/cairo-pdf-surface-private.h b/src/cairo-pdf-surface-private.h
index 5c28f70ca..a50969999 100644
--- a/src/cairo-pdf-surface-private.h
+++ b/src/cairo-pdf-surface-private.h
@@ -95,10 +95,9 @@ typedef enum _cairo_pdf_operation {
PDF_SHOW_GLYPHS
} cairo_pdf_operation_t;
-typedef struct _cairo_pdf_smask_group
-{
- double width;
- double height;
+typedef struct _cairo_pdf_smask_group {
+ double width;
+ double height;
cairo_pdf_resource_t group_res;
cairo_pdf_operation_t operation;
cairo_pattern_t *source;
@@ -106,10 +105,10 @@ typedef struct _cairo_pdf_smask_group
cairo_pattern_t *mask;
cairo_path_fixed_t path;
cairo_fill_rule_t fill_rule;
- cairo_stroke_style_t *style;
+ cairo_stroke_style_t style;
cairo_matrix_t ctm;
cairo_matrix_t ctm_inverse;
- char *utf8;
+ char *utf8;
int utf8_len;
cairo_glyph_t *glyphs;
int num_glyphs;