From ad8a5680e6d3fd1ad77ae2c1a3d38ebe2042f2cb Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 22 Feb 2016 14:18:05 +0100 Subject: Drop const from fz_shade. Shading objects are immutable and opaque once constructed. Therefore there is no need for the const keyword. --- source/fitz/test-device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/fitz/test-device.c') diff --git a/source/fitz/test-device.c b/source/fitz/test-device.c index 065fa59e..946e636d 100644 --- a/source/fitz/test-device.c +++ b/source/fitz/test-device.c @@ -90,7 +90,7 @@ fz_test_stroke_text(fz_context *ctx, fz_device *dev, const fz_text *text, const struct shadearg { fz_device *dev; - const fz_shade *shade; + fz_shade *shade; }; static void @@ -98,13 +98,13 @@ prepare_vertex(fz_context *ctx, void *arg_, fz_vertex *v, const float *color) { struct shadearg *arg = arg_; fz_device *dev = arg->dev; - const fz_shade *shade = arg->shade; + fz_shade *shade = arg->shade; if (!shade->use_function) fz_test_color(ctx, dev, shade->colorspace, color); } static void -fz_test_fill_shade(fz_context *ctx, fz_device *dev, const fz_shade *shade, const fz_matrix *ctm, float alpha) +fz_test_fill_shade(fz_context *ctx, fz_device *dev, fz_shade *shade, const fz_matrix *ctm, float alpha) { if (shade->use_function) { -- cgit v1.2.3