summaryrefslogtreecommitdiff
path: root/source/fitz/pixmap.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-02-22 14:20:37 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-02-22 14:31:17 +0100
commit2af96d78c56c9cc81176c732563a5a4338012a0b (patch)
tree14870652195ea97de5a6a6630a0b478ecce8fba9 /source/fitz/pixmap.c
parentad8a5680e6d3fd1ad77ae2c1a3d38ebe2042f2cb (diff)
downloadmupdf-2af96d78c56c9cc81176c732563a5a4338012a0b.tar.xz
Drop const from fz_image.
Image objects are immutable and opaque once constructed. Therefore there is no need for the const keyword.
Diffstat (limited to 'source/fitz/pixmap.c')
-rw-r--r--source/fitz/pixmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/pixmap.c b/source/fitz/pixmap.c
index 8bdb5cb9..38c96f0f 100644
--- a/source/fitz/pixmap.c
+++ b/source/fitz/pixmap.c
@@ -1012,7 +1012,7 @@ png_from_pixmap(fz_context *ctx, fz_pixmap *pix, int drop)
}
fz_buffer *
-fz_new_buffer_from_image_as_png(fz_context *ctx, const fz_image *image, int w, int h)
+fz_new_buffer_from_image_as_png(fz_context *ctx, fz_image *image, int w, int h)
{
return png_from_pixmap(ctx, fz_get_pixmap_from_image(ctx, image, image->w, image->h), 1);
}