diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-06-19 14:49:38 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-06-19 14:49:38 +0100 |
commit | f18dc92eb8014b335afdb720a8f5bc9c3bd7ceb7 (patch) | |
tree | 273577c217277bf3be2d9e8ae4224c3d5a401c39 /pdf/pdf_form.c | |
parent | 6553b7d94d94c9adc1201c6cdf6532fe65b9e63d (diff) | |
download | mupdf-f18dc92eb8014b335afdb720a8f5bc9c3bd7ceb7.tar.xz |
Avoid lots of const warnings.
Add/Remove a few consts to pacify MSVC.
Diffstat (limited to 'pdf/pdf_form.c')
-rw-r--r-- | pdf/pdf_form.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf/pdf_form.c b/pdf/pdf_form.c index 3b995c32..7ee19580 100644 --- a/pdf/pdf_form.c +++ b/pdf/pdf_form.c @@ -393,7 +393,7 @@ static void fzbuf_print_da(fz_context *ctx, fz_buffer *fzbuf, da_info *di) fz_buffer_printf(ctx, fzbuf, " 0 g"); } -static fz_rect measure_text(pdf_document *doc, font_info *font_rec, fz_matrix *tm, char *text) +static fz_rect measure_text(pdf_document *doc, font_info *font_rec, const fz_matrix *tm, char *text) { fz_rect bbox = pdf_measure_text(doc->ctx, font_rec->font, text, strlen(text)); @@ -1046,7 +1046,7 @@ static pdf_xobject *load_or_create_form(pdf_document *doc, pdf_obj *obj, fz_rect int rot; pdf_obj *formobj = NULL; pdf_xobject *form = NULL; - const char *dn = "N"; + char *dn = "N"; fz_buffer *fzbuf = NULL; int create_form = 0; |