diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2017-03-23 21:36:57 -0400 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2017-03-23 21:39:07 -0400 |
commit | ea75724276f1efabd5d78595af0d3d35f7cde659 (patch) | |
tree | 5d4ebd5169ba4154109463f7e9bfcf7462737fd6 /source/cbz/mucbz.c | |
parent | 6979982ba2900f451c801d35bb7e52413a89d26e (diff) | |
download | mupdf-ea75724276f1efabd5d78595af0d3d35f7cde659.tar.xz |
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.
Diffstat (limited to 'source/cbz/mucbz.c')
-rw-r--r-- | source/cbz/mucbz.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c index 33aac13c..53ad5938 100644 --- a/source/cbz/mucbz.c +++ b/source/cbz/mucbz.c @@ -165,7 +165,7 @@ cbz_load_page(fz_context *ctx, cbz_document *doc, int number) fz_try(ctx) { - page = fz_new_page(ctx, cbz_page); + page = fz_new_derived_page(ctx, cbz_page); page->super.bound_page = (fz_page_bound_page_fn *)cbz_bound_page; page->super.run_page_contents = (fz_page_run_page_contents_fn *)cbz_run_page; page->super.drop_page = (fz_page_drop_page_fn *)cbz_drop_page; @@ -197,7 +197,7 @@ cbz_open_document_with_stream(fz_context *ctx, fz_stream *file) { cbz_document *doc; - doc = fz_new_document(ctx, cbz_document); + doc = fz_new_derived_document(ctx, cbz_document); doc->super.drop_document = (fz_document_drop_fn *)cbz_drop_document; doc->super.count_pages = (fz_document_count_pages_fn *)cbz_count_pages; |