summaryrefslogtreecommitdiff
path: root/source/svg/svg-doc.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2017-03-23 21:36:57 -0400
committerRobin Watts <Robin.Watts@artifex.com>2017-03-23 21:39:07 -0400
commitea75724276f1efabd5d78595af0d3d35f7cde659 (patch)
tree5d4ebd5169ba4154109463f7e9bfcf7462737fd6 /source/svg/svg-doc.c
parent6979982ba2900f451c801d35bb7e52413a89d26e (diff)
downloadmupdf-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/svg/svg-doc.c')
-rw-r--r--source/svg/svg-doc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/svg/svg-doc.c b/source/svg/svg-doc.c
index b535b380..6e127d75 100644
--- a/source/svg/svg-doc.c
+++ b/source/svg/svg-doc.c
@@ -61,7 +61,7 @@ svg_load_page(fz_context *ctx, fz_document *doc_, int number)
if (number != 0)
return NULL;
- page = fz_new_page(ctx, svg_page);
+ page = fz_new_derived_page(ctx, svg_page);
page->super.bound_page = svg_bound_page;
page->super.run_page_contents = svg_run_page;
page->super.drop_page = svg_drop_page;
@@ -91,7 +91,7 @@ svg_open_document_with_buffer(fz_context *ctx, fz_buffer *buf)
root = fz_parse_xml(ctx, buf, 0);
- doc = fz_new_document(ctx, svg_document);
+ doc = fz_new_derived_document(ctx, svg_document);
doc->super.drop_document = svg_drop_document;
doc->super.count_pages = svg_count_pages;
doc->super.load_page = svg_load_page;