summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-interpret.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-04-12 13:51:44 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-04-25 12:26:32 +0200
commite41e86bd0172036cb29d6fe1a26f88ad075d060f (patch)
treefdb4478c773621eb166a3dab0ae51e33654a3667 /source/pdf/pdf-interpret.c
parent6ee3e43ca37620febd255390b2c29a2ceda35f93 (diff)
downloadmupdf-e41e86bd0172036cb29d6fe1a26f88ad075d060f.tar.xz
Remove document argument from pdf_new_primitive functions.
Also remove useless pdf_new_null and pdf_new_bool functions. Use the PDF_NULL, PDF_TRUE, and PDF_FALSE macros instead.
Diffstat (limited to 'source/pdf/pdf-interpret.c')
-rw-r--r--source/pdf/pdf-interpret.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-interpret.c b/source/pdf/pdf-interpret.c
index 8f8d051f..88b98bb5 100644
--- a/source/pdf/pdf-interpret.c
+++ b/source/pdf/pdf-interpret.c
@@ -892,7 +892,7 @@ pdf_process_stream(fz_context *ctx, pdf_processor *proc, pdf_csi *csi, fz_stream
{
pdf_drop_obj(ctx, csi->obj);
csi->obj = NULL;
- csi->obj = pdf_new_name(ctx, doc, buf->scratch);
+ csi->obj = pdf_new_name(ctx, buf->scratch);
}
else
fz_strlcpy(csi->name, buf->scratch, sizeof(csi->name));
@@ -929,7 +929,7 @@ pdf_process_stream(fz_context *ctx, pdf_processor *proc, pdf_csi *csi, fz_stream
pdf_drop_obj(ctx, csi->obj);
csi->obj = NULL;
}
- csi->obj = pdf_new_string(ctx, doc, buf->scratch, buf->len);
+ csi->obj = pdf_new_string(ctx, buf->scratch, buf->len);
}
break;