From 1180b61fce77e2c06a0be764605f7fde4aad7ae3 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 14 Dec 2015 16:15:11 +0000 Subject: Add 'const' to the context lock and alloc structure pointers. This highlights the fact that we never alter the internals, and allows callers to pass in static const pointers. --- source/fitz/context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/fitz/context.c b/source/fitz/context.c index 53f820a1..5d3373c2 100644 --- a/source/fitz/context.c +++ b/source/fitz/context.c @@ -112,7 +112,7 @@ fz_drop_context(fz_context *ctx) * that aren't shared between contexts. */ static fz_context * -new_context_phase1(fz_alloc_context *alloc, fz_locks_context *locks) +new_context_phase1(const fz_alloc_context *alloc, const fz_locks_context *locks) { fz_context *ctx; @@ -159,7 +159,7 @@ cleanup: } fz_context * -fz_new_context_imp(fz_alloc_context *alloc, fz_locks_context *locks, unsigned int max_store, const char *version) +fz_new_context_imp(const fz_alloc_context *alloc, const fz_locks_context *locks, unsigned int max_store, const char *version) { fz_context *ctx; -- cgit v1.2.3