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/pdf | |
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/pdf')
-rw-r--r-- | source/pdf/pdf-xref.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index b757dfed..14da300d 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -2756,9 +2756,9 @@ pdf_recognize(fz_context *doc, const char *magic) fz_document_handler pdf_document_handler = { - (fz_document_recognize_fn *)&pdf_recognize, - (fz_document_open_fn *)&pdf_open_document, - (fz_document_open_with_stream_fn *)&pdf_open_document_with_stream + pdf_recognize, + (fz_document_open_fn *) pdf_open_document, + (fz_document_open_with_stream_fn *) pdf_open_document_with_stream }; void pdf_mark_xref(fz_context *ctx, pdf_document *doc) |