From 5cee3f28ead05cb336377483e24664c004af8b0a Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 25 May 2018 21:48:49 +0000 Subject: Mark more CPDF_Objects as const in action and bookmark code. Change-Id: Ib5f4cdb9c7f9c33561028a85029649ba68f4a6e5 Reviewed-on: https://pdfium-review.googlesource.com/32912 Commit-Queue: Lei Zhang Reviewed-by: dsinclair --- public/fpdfview.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public') diff --git a/public/fpdfview.h b/public/fpdfview.h index 66813d8bb4..a3017b4ca4 100644 --- a/public/fpdfview.h +++ b/public/fpdfview.h @@ -35,11 +35,11 @@ #define FPDF_OBJECT_REFERENCE 9 // PDF types - use incomplete types for type safety. -typedef struct fpdf_action_t__* FPDF_ACTION; +typedef const struct fpdf_action_t__* FPDF_ACTION; typedef struct fpdf_annotation_t__* FPDF_ANNOTATION; typedef struct fpdf_attachment_t__* FPDF_ATTACHMENT; typedef struct fpdf_bitmap_t__* FPDF_BITMAP; -typedef struct fpdf_bookmark_t__* FPDF_BOOKMARK; +typedef const struct fpdf_bookmark_t__* FPDF_BOOKMARK; typedef struct fpdf_clippath_t__* FPDF_CLIPPATH; typedef struct fpdf_dest_t__* FPDF_DEST; typedef struct fpdf_document_t__* FPDF_DOCUMENT; -- cgit v1.2.3