From 834243dbfc8ab3e9269b7a789d61e3fe0f8e71f7 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 22 Jun 2016 22:14:17 +0100 Subject: Tweak PDF annot API. The values returned from the pdf_annot_{contents, author, date} functions should not be altered, hence make it const. --- include/mupdf/pdf/annot.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/mupdf/pdf') diff --git a/include/mupdf/pdf/annot.h b/include/mupdf/pdf/annot.h index beb100df..ed18aae1 100644 --- a/include/mupdf/pdf/annot.h +++ b/include/mupdf/pdf/annot.h @@ -121,17 +121,17 @@ void pdf_set_annot_contents(fz_context *ctx, pdf_document *doc, pdf_annot *annot /* pdf_annot_contents: return the contents of an annotation. */ -char *pdf_annot_contents(fz_context *ctx, pdf_annot *annot); +const char *pdf_annot_contents(fz_context *ctx, pdf_annot *annot); /* pdf_annot_author: return the author of an annotation. */ -char *pdf_annot_author(fz_context *ctx, pdf_annot *annot); +const char *pdf_annot_author(fz_context *ctx, pdf_annot *annot); /* pdf_annot_author: return the date of an annotation. */ -char *pdf_annot_date(fz_context *ctx, pdf_annot *annot); +const char *pdf_annot_date(fz_context *ctx, pdf_annot *annot); /* pdf_annot_irt: return the indirect reference that this annotation is in reply to. -- cgit v1.2.3