diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2017-01-19 02:08:49 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-03-28 15:53:56 +0200 |
commit | 4918560f7dd434fa5489d4efc442d70835668650 (patch) | |
tree | ea14522f16916eac0d83f837ba8bfffbcf6f0bbc /source/html | |
parent | 161a77db42e306216b5493cf8f8e739053eb86d2 (diff) | |
download | mupdf-4918560f7dd434fa5489d4efc442d70835668650.tar.xz |
Return fz_document from all document handlers.
To make it possible to avoid casting in most cases.
Diffstat (limited to 'source/html')
-rw-r--r-- | source/html/epub-doc.c | 6 | ||||
-rw-r--r-- | source/html/html-doc.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/source/html/epub-doc.c b/source/html/epub-doc.c index 441bfb83..44903d99 100644 --- a/source/html/epub-doc.c +++ b/source/html/epub-doc.c @@ -532,7 +532,7 @@ epub_recognize(fz_context *doc, const char *magic) fz_document_handler epub_document_handler = { - &epub_recognize, - &epub_open_document, - &epub_open_document_with_stream + epub_recognize, + epub_open_document, + epub_open_document_with_stream }; 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 }; |