From 43e6a76ff86747501b77f2e485bdfcd8c067fb8f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 30 Jan 2018 16:14:24 +0100 Subject: Use convenience pdf dictionary/array creation functions. --- source/pdf/pdf-interpret.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/pdf/pdf-interpret.c') 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; -- cgit v1.2.3