summaryrefslogtreecommitdiff
path: root/base/gsicc_manage.c
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2017-11-15 16:49:41 +0000
committerKen Sharp <ken.sharp@artifex.com>2017-11-16 08:26:44 +0000
commitdd820bbe7f53e051add94dbcdc779dae1820e0d6 (patch)
treea208eb741a0afc21eb41b0ebc95c202263e64925 /base/gsicc_manage.c
parentc9951359bde5c4e72a20624788a47a97872db090 (diff)
downloadghostpdl-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.c6
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);