From 4918560f7dd434fa5489d4efc442d70835668650 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Thu, 19 Jan 2017 02:08:49 +0100 Subject: Return fz_document from all document handlers. To make it possible to avoid casting in most cases. --- source/html/html-doc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/html/html-doc.c') diff --git a/source/html/html-doc.c b/source/html/html-doc.c index fadb6ee3..ba765350 100644 --- a/source/html/html-doc.c +++ b/source/html/html-doc.c @@ -160,7 +160,7 @@ htdoc_open_document_with_stream(fz_context *ctx, fz_stream *file) fz_catch(ctx) fz_rethrow(ctx); - return (fz_document*)doc; + return &doc->super; } static fz_document * @@ -216,7 +216,7 @@ htdoc_recognize(fz_context *doc, const char *magic) fz_document_handler html_document_handler = { - &htdoc_recognize, - &htdoc_open_document, - &htdoc_open_document_with_stream + htdoc_recognize, + htdoc_open_document, + htdoc_open_document_with_stream }; -- cgit v1.2.3