From ea75724276f1efabd5d78595af0d3d35f7cde659 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 23 Mar 2017 21:36:57 -0400 Subject: Introduce fz_new_derived_... Instead of having fz_new_XXXX(ctx, type, ...) macros that call fz_new_XXXX_of_size etc, use fz_new_derived_... Clearer naming, and doesn't clash with fz_new_document_writer. --- source/cbz/muimg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cbz/muimg.c') diff --git a/source/cbz/muimg.c b/source/cbz/muimg.c index f985d460..5c9b84bf 100644 --- a/source/cbz/muimg.c +++ b/source/cbz/muimg.c @@ -69,7 +69,7 @@ img_load_page(fz_context *ctx, img_document *doc, int number) if (number != 0) return NULL; - page = fz_new_page(ctx, img_page); + page = fz_new_derived_page(ctx, img_page); page->super.bound_page = (fz_page_bound_page_fn *)img_bound_page; page->super.run_page_contents = (fz_page_run_page_contents_fn *)img_run_page; @@ -91,7 +91,7 @@ img_lookup_metadata(fz_context *ctx, img_document *doc, const char *key, char *b static img_document * img_new_document(fz_context *ctx, fz_image *image) { - img_document *doc = fz_new_document(ctx, img_document); + img_document *doc = fz_new_derived_document(ctx, img_document); doc->super.drop_document = (fz_document_drop_fn *)img_drop_document; doc->super.count_pages = (fz_document_count_pages_fn *)img_count_pages; -- cgit v1.2.3