diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-01-30 16:14:24 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-01-31 11:57:00 +0100 |
commit | 43e6a76ff86747501b77f2e485bdfcd8c067fb8f (patch) | |
tree | a74407012dd8867f58d307212096920cfc1c642b /source/pdf/pdf-interpret.c | |
parent | e4b3a9d4c74272d421492b4967c6190cf26f8a73 (diff) | |
download | mupdf-43e6a76ff86747501b77f2e485bdfcd8c067fb8f.tar.xz |
Use convenience pdf dictionary/array creation functions.
Diffstat (limited to 'source/pdf/pdf-interpret.c')
-rw-r--r-- | source/pdf/pdf-interpret.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/pdf/pdf-interpret.c b/source/pdf/pdf-interpret.c index 3aeeeae7..1c781b9e 100644 --- a/source/pdf/pdf-interpret.c +++ b/source/pdf/pdf-interpret.c @@ -848,13 +848,13 @@ pdf_process_stream(fz_context *ctx, pdf_processor *proc, pdf_csi *csi, fz_stream in_text_array = 0; break; case PDF_TOK_REAL: - pdf_array_push_drop(ctx, csi->obj, pdf_new_real(ctx, doc, buf->f)); + pdf_array_push_real(ctx, csi->obj, buf->f); break; case PDF_TOK_INT: - pdf_array_push_drop(ctx, csi->obj, pdf_new_int(ctx, doc, buf->i)); + pdf_array_push_int(ctx, csi->obj, buf->i); break; case PDF_TOK_STRING: - pdf_array_push_drop(ctx, csi->obj, pdf_new_string(ctx, doc, buf->scratch, buf->len)); + pdf_array_push_string(ctx, csi->obj, buf->scratch, buf->len); break; case PDF_TOK_EOF: break; |