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/stext-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/stext-device.c')
-rw-r--r-- | source/fitz/stext-device.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/fitz/stext-device.c b/source/fitz/stext-device.c index 3cf207c2..d4a0ab46 100644 --- a/source/fitz/stext-device.c +++ b/source/fitz/stext-device.c @@ -438,7 +438,7 @@ fz_lookup_stext_style_imp(fz_context *ctx, fz_stext_sheet *sheet, static fz_stext_style * fz_lookup_stext_style(fz_context *ctx, fz_stext_sheet *sheet, fz_text_span *span, const fz_matrix *ctm, - const fz_colorspace *colorspace, const float *color, float alpha, const fz_stroke_state *stroke) + fz_colorspace *colorspace, const float *color, float alpha, const fz_stroke_state *stroke) { float size = 1.0f; fz_font *font = span ? span->font : NULL; @@ -827,7 +827,7 @@ fz_stext_extract(fz_context *ctx, fz_stext_device *dev, fz_text_span *span, cons static void fz_stext_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) { fz_stext_device *tdev = (fz_stext_device*)dev; fz_stext_style *style; @@ -841,7 +841,7 @@ fz_stext_fill_text(fz_context *ctx, fz_device *dev, const fz_text *text, const f static void fz_stext_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) { fz_stext_device *tdev = (fz_stext_device*)dev; fz_stext_style *style; @@ -894,7 +894,7 @@ fz_stext_ignore_text(fz_context *ctx, fz_device *dev, const fz_text *text, const static void fz_stext_fill_image_mask(fz_context *ctx, fz_device *dev, const fz_image *img, const fz_matrix *ctm, - const fz_colorspace *cspace, const float *color, float alpha) + fz_colorspace *cspace, const float *color, float alpha) { fz_stext_device *tdev = (fz_stext_device*)dev; fz_stext_page *page = tdev->page; |