diff options
author | L Peter Deutsch <lpd@ghostscript.com> | 2002-04-11 04:12:17 +0000 |
---|---|---|
committer | L Peter Deutsch <lpd@ghostscript.com> | 2002-04-11 04:12:17 +0000 |
commit | 5c2c39daea12ff07fdd6e5ea61bba2374a79b187 (patch) | |
tree | 7654a0c4a0faf4b2b4f0088069ed52781889321a | |
parent | 278e32f696c39b0779240f28e4a017f611dac6b6 (diff) |
Changes two calls of cos_dict_find to cos_dict_find_c_key (hygiene only).
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2471 a1074d23-0009-0410-80fe-cf8c14f379e6
-rw-r--r-- | gs/src/gdevpdfm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gs/src/gdevpdfm.c b/gs/src/gdevpdfm.c index 3147cb10f..277e3963c 100644 --- a/gs/src/gdevpdfm.c +++ b/gs/src/gdevpdfm.c @@ -408,8 +408,7 @@ pdfmark_put_ao_pairs(gx_device_pdf * pdev, cos_dict_t *pcd, */ pdfmark_put_pair(pcd, pair); /* Break const so we can update the (copied) string. */ - pcv = (cos_value_t *) - cos_dict_find(pcd, (const byte *)"/Contents", 9); + pcv = (cos_value_t *)cos_dict_find_c_key(pcd, "/Contents"); cstr = pcv->contents.chars.data; /* Loop invariant: j <= i < csize. */ for (i = j = 0; i < csize;) @@ -842,7 +841,7 @@ pdfmark_ARTICLE(gx_device_pdf * pdev, gs_param_string * pairs, uint count, /* Find the article with this title, or create one. */ for (part = pdev->articles; part != 0; part = part->next) { const cos_value_t *a_title = - cos_dict_find(part->contents, (const byte *)"/Title", 6); + cos_dict_find_c_key(part->contents, "/Title"); if (a_title != 0 && !COS_VALUE_IS_OBJECT(a_title) && !bytes_compare(a_title->contents.chars.data, |