diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2017-11-15 16:49:41 +0000 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2017-11-16 08:26:44 +0000 |
commit | dd820bbe7f53e051add94dbcdc779dae1820e0d6 (patch) | |
tree | a208eb741a0afc21eb41b0ebc95c202263e64925 /base/gsicc_manage.c | |
parent | c9951359bde5c4e72a20624788a47a97872db090 (diff) | |
download | ghostpdl-dd820bbe7f53e051add94dbcdc779dae1820e0d6.tar.gz |
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.
Diffstat (limited to 'base/gsicc_manage.c')
-rw-r--r-- | base/gsicc_manage.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |