diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-12-09 20:44:25 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-12-12 11:11:49 +0000 |
commit | bcb2724920aa1bca1a9a82b5017d3180f5f9523e (patch) | |
tree | 4a7f2c3f3c96f2d91611e90e06472e856bf4bda3 /src/cairo-type1-fallback.c | |
parent | 68b29cafa597128e7cae86608e04ecae6070dad9 (diff) |
[path] Mark points as const during _cairo_path_fixed_interpret()
Use const to document the read-only nature of the arguments passed to the
callbacks.
Diffstat (limited to 'src/cairo-type1-fallback.c')
-rw-r--r-- | src/cairo-type1-fallback.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cairo-type1-fallback.c b/src/cairo-type1-fallback.c index 91c005425..2b6768dc0 100644 --- a/src/cairo-type1-fallback.c +++ b/src/cairo-type1-fallback.c @@ -218,8 +218,8 @@ typedef struct _ps_path_info { } t1_path_info_t; static cairo_status_t -_charstring_move_to (void *closure, - cairo_point_t *point) +_charstring_move_to (void *closure, + const cairo_point_t *point) { t1_path_info_t *path_info = (t1_path_info_t *) closure; int dx, dy; @@ -242,8 +242,8 @@ _charstring_move_to (void *closure, } static cairo_status_t -_charstring_line_to (void *closure, - cairo_point_t *point) +_charstring_line_to (void *closure, + const cairo_point_t *point) { t1_path_info_t *path_info = (t1_path_info_t *) closure; int dx, dy; @@ -266,10 +266,10 @@ _charstring_line_to (void *closure, } static cairo_status_t -_charstring_curve_to (void *closure, - cairo_point_t *point1, - cairo_point_t *point2, - cairo_point_t *point3) +_charstring_curve_to (void *closure, + const cairo_point_t *point1, + const cairo_point_t *point2, + const cairo_point_t *point3) { t1_path_info_t *path_info = (t1_path_info_t *) closure; int dx1, dy1, dx2, dy2, dx3, dy3; |