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-rectangle.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-rectangle.c')
-rw-r--r-- | src/cairo-rectangle.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-rectangle.c b/src/cairo-rectangle.c index 9a68409c..b1396248 100644 --- a/src/cairo-rectangle.c +++ b/src/cairo-rectangle.c @@ -153,8 +153,8 @@ _cairo_box_intersects_line_segment (cairo_box_t *box, cairo_line_t *line) cairo_fixed_t xlen, ylen; - if (_cairo_box_contains_point(box, &line->p1) || - _cairo_box_contains_point(box, &line->p2)) + if (_cairo_box_contains_point (box, &line->p1) || + _cairo_box_contains_point (box, &line->p2)) return TRUE; xlen = P2x - P1x; @@ -216,7 +216,7 @@ _cairo_box_intersects_line_segment (cairo_box_t *box, cairo_line_t *line) } cairo_bool_t -_cairo_box_contains_point (cairo_box_t *box, cairo_point_t *point) +_cairo_box_contains_point (cairo_box_t *box, const cairo_point_t *point) { if (point->x < box->p1.x || point->x > box->p2.x || point->y < box->p1.y || point->y > box->p2.y) |