From dd820bbe7f53e051add94dbcdc779dae1820e0d6 Mon Sep 17 00:00:00 2001 From: Ken Sharp Date: Wed, 15 Nov 2017 16:49:41 +0000 Subject: Device method repair - use accessors throughout A lot of places accessed device methods directly, instead of using the accessor macros. Update all the code to use the accessors. --- base/gsicc_manage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'base/gsicc_manage.c') diff --git a/base/gsicc_manage.c b/base/gsicc_manage.c index 0fbcdf105..a3bc449b5 100644 --- a/base/gsicc_manage.c +++ b/base/gsicc_manage.c @@ -1350,7 +1350,7 @@ gsicc_set_device_blackpreserve(gx_device *dev, gsicc_blackpreserve_t blackpreser * gx_device_fill_in_procs is called, and its possible for us to get here before this * happens, so we *must* make sure the method is not NULL before we use it. */ - if (dev->procs.get_profile == NULL) { + if (dev_proc(dev, get_profile) == NULL) { profile_struct = dev->icc_struct; } else { code = dev_proc(dev, get_profile)(dev, &profile_struct); @@ -1374,7 +1374,7 @@ gsicc_set_device_profile_intent(gx_device *dev, gsicc_rendering_intents_t intent * gx_device_fill_in_procs is called, and its possible for us to get here before this * happens, so we *must* make sure the method is not NULL before we use it. */ - if (dev->procs.get_profile == NULL) { + if (dev_proc(dev, get_profile) == NULL) { profile_struct = dev->icc_struct; } else { code = dev_proc(dev, get_profile)(dev, &profile_struct); @@ -1398,7 +1398,7 @@ gsicc_set_device_blackptcomp(gx_device *dev, gsicc_blackptcomp_t blackptcomp, * gx_device_fill_in_procs is called, and its possible for us to get here before this * happens, so we *must* make sure the method is not NULL before we use it. */ - if (dev->procs.get_profile == NULL) { + if (dev_proc(dev, get_profile) == NULL) { profile_struct = dev->icc_struct; } else { code = dev_proc(dev, get_profile)(dev, &profile_struct); -- cgit v1.2.1