diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-06-19 14:21:10 +0200 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-06-22 15:46:56 +0100 |
commit | e709f64df191609e83a497cae94ff59bcf32a239 (patch) | |
tree | a8586fede90e3601d2f96951dc668dd046b2da0d /source/pdf/pdf-form.c | |
parent | 978c99d48e05db3130a342d8810bf1ce28faff74 (diff) | |
download | mupdf-e709f64df191609e83a497cae94ff59bcf32a239.tar.xz |
Add const to pdf_toname.
Diffstat (limited to 'source/pdf/pdf-form.c')
-rw-r--r-- | source/pdf/pdf-form.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/pdf/pdf-form.c b/source/pdf/pdf-form.c index 1eef8af6..417e74ac 100644 --- a/source/pdf/pdf-form.c +++ b/source/pdf/pdf-form.c @@ -884,8 +884,7 @@ int pdf_field_set_value(fz_context *ctx, pdf_document *doc, pdf_obj *field, cons char *pdf_field_border_style(fz_context *ctx, pdf_document *doc, pdf_obj *field) { - char *bs = pdf_to_name(ctx, pdf_dict_getl(ctx, field, PDF_NAME_BS, PDF_NAME_S, NULL)); - + const char *bs = pdf_to_name(ctx, pdf_dict_getl(ctx, field, PDF_NAME_BS, PDF_NAME_S, NULL)); switch (*bs) { case 'S': return "Solid"; @@ -894,7 +893,6 @@ char *pdf_field_border_style(fz_context *ctx, pdf_document *doc, pdf_obj *field) case 'I': return "Inset"; case 'U': return "Underline"; } - return "Solid"; } |