summaryrefslogtreecommitdiff
path: root/source/xps
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-01-19 02:08:49 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-03-28 15:53:56 +0200
commit4918560f7dd434fa5489d4efc442d70835668650 (patch)
treeea14522f16916eac0d83f837ba8bfffbcf6f0bbc /source/xps
parent161a77db42e306216b5493cf8f8e739053eb86d2 (diff)
downloadmupdf-4918560f7dd434fa5489d4efc442d70835668650.tar.xz
Return fz_document from all document handlers.
To make it possible to avoid casting in most cases.
Diffstat (limited to 'source/xps')
-rw-r--r--source/xps/xps-doc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/xps/xps-doc.c b/source/xps/xps-doc.c
index d81ab5b6..5c91a591 100644
--- a/source/xps/xps-doc.c
+++ b/source/xps/xps-doc.c
@@ -484,7 +484,7 @@ xps_recognize(fz_context *ctx, const char *magic)
fz_document_handler xps_document_handler =
{
- (fz_document_recognize_fn *)&xps_recognize,
- (fz_document_open_fn *)&xps_open_document,
- (fz_document_open_with_stream_fn *)&xps_open_document_with_stream
+ xps_recognize,
+ (fz_document_open_fn *) xps_open_document,
+ (fz_document_open_with_stream_fn *) xps_open_document_with_stream
};