From e41e86bd0172036cb29d6fe1a26f88ad075d060f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 12 Apr 2018 13:51:44 +0200 Subject: 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. --- source/pdf/pdf-nametree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/pdf/pdf-nametree.c') diff --git a/source/pdf/pdf-nametree.c b/source/pdf/pdf-nametree.c index 375b9fd5..30dd5974 100644 --- a/source/pdf/pdf-nametree.c +++ b/source/pdf/pdf-nametree.c @@ -140,7 +140,7 @@ pdf_load_name_tree_imp(fz_context *ctx, pdf_obj *dict, pdf_document *doc, pdf_ob pdf_obj *val = pdf_array_get(ctx, names, i + 1); if (pdf_is_string(ctx, key)) { - key = pdf_to_utf8_name(ctx, doc, key); + key = pdf_to_utf8_name(ctx, key); pdf_dict_put(ctx, dict, key, val); pdf_drop_obj(ctx, key); } -- cgit v1.2.3