diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-01-21 12:55:36 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-01-21 12:55:36 +0100 |
commit | 6625a5b82671df7e79afc69a2ba366fb64df03a9 (patch) | |
tree | b8bc2694b269fce2dc7c1e00ead0f47590993419 /source/fitz/device.c | |
parent | 000b8df004b175781af5b071590cf3867ae16f3a (diff) | |
download | mupdf-6625a5b82671df7e79afc69a2ba366fb64df03a9.tar.xz |
Drop const from fz_colorspace.
It's an opaque immutable structure, that we don't expect to ever want
to change after creation. Therefore the const keyword is not useful,
and is only line noise.
Diffstat (limited to 'source/fitz/device.c')
-rw-r--r-- | source/fitz/device.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/fitz/device.c b/source/fitz/device.c index f95ae32a..8913cdb2 100644 --- a/source/fitz/device.c +++ b/source/fitz/device.c @@ -75,7 +75,7 @@ pop_clip_stack(fz_context *ctx, fz_device *dev) void fz_fill_path(fz_context *ctx, fz_device *dev, const fz_path *path, int even_odd, const fz_matrix *ctm, - const fz_colorspace *colorspace, const float *color, float alpha) + fz_colorspace *colorspace, const float *color, float alpha) { if (dev->error_depth) return; @@ -85,7 +85,7 @@ fz_fill_path(fz_context *ctx, fz_device *dev, const fz_path *path, int even_odd, void fz_stroke_path(fz_context *ctx, fz_device *dev, const fz_path *path, const fz_stroke_state *stroke, const fz_matrix *ctm, - const fz_colorspace *colorspace, const float *color, float alpha) + fz_colorspace *colorspace, const float *color, float alpha) { if (dev->error_depth) return; @@ -161,7 +161,7 @@ fz_clip_stroke_path(fz_context *ctx, fz_device *dev, const fz_path *path, const void fz_fill_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_matrix *ctm, - const fz_colorspace *colorspace, const float *color, float alpha) + fz_colorspace *colorspace, const float *color, float alpha) { if (dev->error_depth) return; @@ -171,7 +171,7 @@ fz_fill_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_matr void fz_stroke_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_stroke_state *stroke, const fz_matrix *ctm, - const fz_colorspace *colorspace, const float *color, float alpha) + fz_colorspace *colorspace, const float *color, float alpha) { if (dev->error_depth) return; @@ -280,7 +280,7 @@ fz_fill_image(fz_context *ctx, fz_device *dev, const fz_image *image, const fz_m void fz_fill_image_mask(fz_context *ctx, fz_device *dev, const fz_image *image, const fz_matrix *ctm, - const fz_colorspace *colorspace, const float *color, float alpha) + fz_colorspace *colorspace, const float *color, float alpha) { if (dev->error_depth) return; @@ -313,7 +313,7 @@ fz_clip_image_mask(fz_context *ctx, fz_device *dev, const fz_image *image, const } void -fz_begin_mask(fz_context *ctx, fz_device *dev, const fz_rect *area, int luminosity, const fz_colorspace *colorspace, const float *bc) +fz_begin_mask(fz_context *ctx, fz_device *dev, const fz_rect *area, int luminosity, fz_colorspace *colorspace, const float *bc) { if (dev->error_depth) { |