From bbc4678dd53e3742b5ce7f96aba03038215bbbc4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 22 Feb 2016 14:29:14 +0100 Subject: Remove pointless casts from void*. Extraneous explicit type casts can mask errors, especially if a function prototype or return value changes in the future. --- source/fitz/colorspace.c | 2 +- source/fitz/function.c | 2 +- source/fitz/glyph.c | 2 +- source/fitz/list-device.c | 2 +- source/fitz/pixmap.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'source/fitz') diff --git a/source/fitz/colorspace.c b/source/fitz/colorspace.c index 5549496e..d24aad5e 100644 --- a/source/fitz/colorspace.c +++ b/source/fitz/colorspace.c @@ -30,7 +30,7 @@ fz_new_colorspace(fz_context *ctx, char *name, int n) fz_colorspace * fz_keep_colorspace(fz_context *ctx, fz_colorspace *cs) { - return (fz_colorspace *)fz_keep_storable(ctx, &cs->storable); + return fz_keep_storable(ctx, &cs->storable); } void diff --git a/source/fitz/function.c b/source/fitz/function.c index 75e47a94..138552ac 100644 --- a/source/fitz/function.c +++ b/source/fitz/function.c @@ -33,7 +33,7 @@ fz_eval_function(fz_context *ctx, fz_function *func, const float *in, int inlen, fz_function * fz_keep_function(fz_context *ctx, fz_function *func) { - return (fz_function *)fz_keep_storable(ctx, &func->storable); + return fz_keep_storable(ctx, &func->storable); } void diff --git a/source/fitz/glyph.c b/source/fitz/glyph.c index 8e514751..180b7421 100644 --- a/source/fitz/glyph.c +++ b/source/fitz/glyph.c @@ -5,7 +5,7 @@ fz_glyph * fz_keep_glyph(fz_context *ctx, fz_glyph *glyph) { - return (fz_glyph *)fz_keep_storable(ctx, &glyph->storable); + return fz_keep_storable(ctx, &glyph->storable); } void diff --git a/source/fitz/list-device.c b/source/fitz/list-device.c index 099656d0..c003c2a5 100644 --- a/source/fitz/list-device.c +++ b/source/fitz/list-device.c @@ -1413,7 +1413,7 @@ fz_new_display_list(fz_context *ctx) fz_display_list * fz_keep_display_list(fz_context *ctx, fz_display_list *list) { - return (fz_display_list *)fz_keep_storable(ctx, &list->storable); + return fz_keep_storable(ctx, &list->storable); } void diff --git a/source/fitz/pixmap.c b/source/fitz/pixmap.c index 38c96f0f..6c6e6e53 100644 --- a/source/fitz/pixmap.c +++ b/source/fitz/pixmap.c @@ -3,7 +3,7 @@ fz_pixmap * fz_keep_pixmap(fz_context *ctx, fz_pixmap *pix) { - return (fz_pixmap *)fz_keep_storable(ctx, &pix->storable); + return fz_keep_storable(ctx, &pix->storable); } void -- cgit v1.2.3