summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-annot.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-06-26 11:18:39 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-07-04 17:23:21 +0200
commit47f4a39fa39e5f4c8b7ef8fc91d90728c9880220 (patch)
treebc3d5b4c350690350c1637d29350005dd15dd529 /source/pdf/pdf-annot.c
parent2b9d084882cc04b79e194368e8d1393f55d36d61 (diff)
downloadmupdf-47f4a39fa39e5f4c8b7ef8fc91d90728c9880220.tar.xz
Rename pdf_get_annot_contents to pdf_annot_contents.
Since the function no longer returns ownership of the string, use the common naming convention.
Diffstat (limited to 'source/pdf/pdf-annot.c')
-rw-r--r--source/pdf/pdf-annot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-annot.c b/source/pdf/pdf-annot.c
index b265d9d9..b53beeb2 100644
--- a/source/pdf/pdf-annot.c
+++ b/source/pdf/pdf-annot.c
@@ -393,7 +393,7 @@ pdf_set_annot_rect(fz_context *ctx, pdf_annot *annot, const fz_rect *rect)
}
const char *
-pdf_get_annot_contents(fz_context *ctx, pdf_annot *annot)
+pdf_annot_contents(fz_context *ctx, pdf_annot *annot)
{
return pdf_dict_get_text_string(ctx, annot->obj, PDF_NAME(Contents));
}
@@ -1398,7 +1398,7 @@ pdf_annot_has_author(fz_context *ctx, pdf_annot *annot)
}
const char *
-pdf_get_annot_author(fz_context *ctx, pdf_annot *annot)
+pdf_annot_author(fz_context *ctx, pdf_annot *annot)
{
check_allowed_subtypes(ctx, annot, PDF_NAME(T), markup_subtypes);
return pdf_dict_get_text_string(ctx, annot->obj, PDF_NAME(T));