summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mupdf/pdf/annot.h6
-rw-r--r--source/pdf/pdf-annot-edit.c6
2 files changed, 6 insertions, 6 deletions
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.
diff --git a/source/pdf/pdf-annot-edit.c b/source/pdf/pdf-annot-edit.c
index d073a699..7cd344a4 100644
--- a/source/pdf/pdf-annot-edit.c
+++ b/source/pdf/pdf-annot-edit.c
@@ -373,17 +373,17 @@ void pdf_set_annot_contents(fz_context *ctx, pdf_document *doc, pdf_annot *annot
pdf_dict_put_drop(ctx, annot->obj, PDF_NAME_Contents, pdf_new_string(ctx, doc, text, strlen(text)));
}
-char *pdf_annot_contents(fz_context *ctx, pdf_annot *annot)
+const char *pdf_annot_contents(fz_context *ctx, pdf_annot *annot)
{
return pdf_to_str_buf(ctx, pdf_dict_get(ctx, annot->obj, PDF_NAME_Contents));
}
-char *pdf_annot_author(fz_context *ctx, pdf_annot *annot)
+const char *pdf_annot_author(fz_context *ctx, pdf_annot *annot)
{
return pdf_to_str_buf(ctx, pdf_dict_get(ctx, annot->obj, PDF_NAME_T));
}
-char *pdf_annot_date(fz_context *ctx, pdf_annot *annot)
+const char *pdf_annot_date(fz_context *ctx, pdf_annot *annot)
{
return pdf_to_str_buf(ctx, pdf_dict_get(ctx, annot->obj, PDF_NAME_CreationDate));
}