[gimp] app: cast ops using (gpointer) everywhere instead of 3 different ways



commit a5ee5f28f920eb5071f0919173922b5a821aa002
Author: Michael Natterer <mitch gimp org>
Date:   Thu Jan 19 19:04:49 2017 +0100

    app: cast ops using (gpointer) everywhere instead of 3 different ways

 .../gimpoperationadditionlegacy.c                  |    2 +-
 .../layer-modes-legacy/gimpoperationburnlegacy.c   |    2 +-
 .../gimpoperationdarkenonlylegacy.c                |    2 +-
 .../gimpoperationdifferencelegacy.c                |    2 +-
 .../layer-modes-legacy/gimpoperationdividelegacy.c |    2 +-
 .../layer-modes-legacy/gimpoperationdodgelegacy.c  |    2 +-
 .../gimpoperationgrainextractlegacy.c              |    2 +-
 .../gimpoperationgrainmergelegacy.c                |    2 +-
 .../gimpoperationhardlightlegacy.c                 |    2 +-
 .../gimpoperationhsvcolorlegacy.c                  |    2 +-
 .../layer-modes-legacy/gimpoperationhsvhuelegacy.c |    2 +-
 .../layer-modes-legacy/gimpoperationhsvhuelegacy.h |    1 -
 .../gimpoperationhsvsaturationlegacy.c             |    2 +-
 .../gimpoperationhsvvaluelegacy.c                  |    2 +-
 .../gimpoperationlightenonlylegacy.c               |    2 +-
 .../gimpoperationmultiplylegacy.c                  |    2 +-
 .../gimpoperationmultiplylegacy.h                  |    1 +
 .../layer-modes-legacy/gimpoperationscreenlegacy.c |    2 +-
 .../gimpoperationsubtractlegacy.c                  |    2 +-
 app/operations/layer-modes/gimpoperationaddition.c |    3 ++-
 app/operations/layer-modes/gimpoperationbehind.c   |    2 +-
 app/operations/layer-modes/gimpoperationburn.c     |   10 +++++-----
 .../layer-modes/gimpoperationcolorerase.c          |    2 +-
 .../layer-modes/gimpoperationdarkenonly.c          |    2 +-
 .../layer-modes/gimpoperationdifference.c          |    2 +-
 .../layer-modes/gimpoperationdifference.h          |    1 -
 app/operations/layer-modes/gimpoperationdissolve.c |    2 +-
 app/operations/layer-modes/gimpoperationdivide.c   |    2 +-
 app/operations/layer-modes/gimpoperationdodge.c    |    2 +-
 .../layer-modes/gimpoperationgrainextract.c        |    3 ++-
 .../layer-modes/gimpoperationgrainmerge.c          |    3 ++-
 .../layer-modes/gimpoperationhardlight.c           |    2 +-
 app/operations/layer-modes/gimpoperationhsvcolor.c |    2 +-
 app/operations/layer-modes/gimpoperationhsvhue.c   |    2 +-
 .../layer-modes/gimpoperationhsvsaturation.c       |    3 ++-
 app/operations/layer-modes/gimpoperationhsvvalue.c |    3 ++-
 .../layer-modes/gimpoperationlightenonly.c         |    2 +-
 app/operations/layer-modes/gimpoperationmultiply.c |    2 +-
 app/operations/layer-modes/gimpoperationnormal.c   |    2 +-
 app/operations/layer-modes/gimpoperationoverlay.c  |    2 +-
 app/operations/layer-modes/gimpoperationreplace.c  |    2 +-
 app/operations/layer-modes/gimpoperationscreen.c   |    3 ++-
 .../layer-modes/gimpoperationsoftlight.c           |    3 ++-
 .../layer-modes/gimpoperationsoftlight.h           |    1 +
 app/operations/layer-modes/gimpoperationsubtract.c |    2 +-
 45 files changed, 54 insertions(+), 47 deletions(-)
---
diff --git a/app/operations/layer-modes-legacy/gimpoperationadditionlegacy.c 
b/app/operations/layer-modes-legacy/gimpoperationadditionlegacy.c
index 9399643..3cb1a78 100644
--- a/app/operations/layer-modes-legacy/gimpoperationadditionlegacy.c
+++ b/app/operations/layer-modes-legacy/gimpoperationadditionlegacy.c
@@ -74,7 +74,7 @@ gimp_operation_addition_legacy_process (GeglOperation       *operation,
                                         const GeglRectangle *roi,
                                         gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_addition_legacy_process_pixels (in_buf, aux_buf, aux2_buf,
                                                         out_buf,
diff --git a/app/operations/layer-modes-legacy/gimpoperationburnlegacy.c 
b/app/operations/layer-modes-legacy/gimpoperationburnlegacy.c
index d17fa79..4f18b98 100644
--- a/app/operations/layer-modes-legacy/gimpoperationburnlegacy.c
+++ b/app/operations/layer-modes-legacy/gimpoperationburnlegacy.c
@@ -74,7 +74,7 @@ gimp_operation_burn_legacy_process (GeglOperation       *operation,
                                     const GeglRectangle *roi,
                                     gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_burn_legacy_process_pixels (in_buf, aux_buf, aux2_buf,
                                                     out_buf,
diff --git a/app/operations/layer-modes-legacy/gimpoperationdarkenonlylegacy.c 
b/app/operations/layer-modes-legacy/gimpoperationdarkenonlylegacy.c
index b28c7e5..9d03116 100644
--- a/app/operations/layer-modes-legacy/gimpoperationdarkenonlylegacy.c
+++ b/app/operations/layer-modes-legacy/gimpoperationdarkenonlylegacy.c
@@ -74,7 +74,7 @@ gimp_operation_darken_only_legacy_process (GeglOperation       *operation,
                                            const GeglRectangle *roi,
                                            gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_darken_only_legacy_process_pixels (in_buf, aux_buf, aux2_buf,
                                                            out_buf,
diff --git a/app/operations/layer-modes-legacy/gimpoperationdifferencelegacy.c 
b/app/operations/layer-modes-legacy/gimpoperationdifferencelegacy.c
index 4c52fc1..637763e 100644
--- a/app/operations/layer-modes-legacy/gimpoperationdifferencelegacy.c
+++ b/app/operations/layer-modes-legacy/gimpoperationdifferencelegacy.c
@@ -74,7 +74,7 @@ gimp_operation_difference_legacy_process (GeglOperation       *operation,
                                           const GeglRectangle *roi,
                                           gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_difference_legacy_process_pixels (in_buf, aux_buf, aux2_buf,
                                                           out_buf,
diff --git a/app/operations/layer-modes-legacy/gimpoperationdividelegacy.c 
b/app/operations/layer-modes-legacy/gimpoperationdividelegacy.c
index 57f52cd..066f480 100644
--- a/app/operations/layer-modes-legacy/gimpoperationdividelegacy.c
+++ b/app/operations/layer-modes-legacy/gimpoperationdividelegacy.c
@@ -74,7 +74,7 @@ gimp_operation_divide_legacy_process (GeglOperation       *operation,
                                       const GeglRectangle *roi,
                                       gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_divide_legacy_process_pixels (in_buf, aux_buf, aux2_buf,
                                                       out_buf,
diff --git a/app/operations/layer-modes-legacy/gimpoperationdodgelegacy.c 
b/app/operations/layer-modes-legacy/gimpoperationdodgelegacy.c
index a4e3860..3274983 100644
--- a/app/operations/layer-modes-legacy/gimpoperationdodgelegacy.c
+++ b/app/operations/layer-modes-legacy/gimpoperationdodgelegacy.c
@@ -74,7 +74,7 @@ gimp_operation_dodge_legacy_process (GeglOperation       *operation,
                                      const GeglRectangle *roi,
                                      gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_dodge_legacy_process_pixels (in_buf, aux_buf, aux2_buf,
                                                      out_buf,
diff --git a/app/operations/layer-modes-legacy/gimpoperationgrainextractlegacy.c 
b/app/operations/layer-modes-legacy/gimpoperationgrainextractlegacy.c
index 9248bc6..b241f35 100644
--- a/app/operations/layer-modes-legacy/gimpoperationgrainextractlegacy.c
+++ b/app/operations/layer-modes-legacy/gimpoperationgrainextractlegacy.c
@@ -74,7 +74,7 @@ gimp_operation_grain_extract_legacy_process (GeglOperation       *operation,
                                              const GeglRectangle *roi,
                                              gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_grain_extract_legacy_process_pixels (in_buf, aux_buf, aux2_buf,
                                                              out_buf,
diff --git a/app/operations/layer-modes-legacy/gimpoperationgrainmergelegacy.c 
b/app/operations/layer-modes-legacy/gimpoperationgrainmergelegacy.c
index 03cebe3..2312239 100644
--- a/app/operations/layer-modes-legacy/gimpoperationgrainmergelegacy.c
+++ b/app/operations/layer-modes-legacy/gimpoperationgrainmergelegacy.c
@@ -74,7 +74,7 @@ gimp_operation_grain_merge_legacy_process (GeglOperation       *operation,
                                            const GeglRectangle *roi,
                                            gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_grain_merge_legacy_process_pixels (in_buf, aux_buf, aux2_buf,
                                                            out_buf,
diff --git a/app/operations/layer-modes-legacy/gimpoperationhardlightlegacy.c 
b/app/operations/layer-modes-legacy/gimpoperationhardlightlegacy.c
index 45d18b8..d3e4c33 100644
--- a/app/operations/layer-modes-legacy/gimpoperationhardlightlegacy.c
+++ b/app/operations/layer-modes-legacy/gimpoperationhardlightlegacy.c
@@ -74,7 +74,7 @@ gimp_operation_hardlight_legacy_process (GeglOperation       *operation,
                                          const GeglRectangle *roi,
                                          gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_hardlight_legacy_process_pixels (in_buf, aux_buf, aux2_buf,
                                                          out_buf,
diff --git a/app/operations/layer-modes-legacy/gimpoperationhsvcolorlegacy.c 
b/app/operations/layer-modes-legacy/gimpoperationhsvcolorlegacy.c
index 4bdcb25..da4c596 100644
--- a/app/operations/layer-modes-legacy/gimpoperationhsvcolorlegacy.c
+++ b/app/operations/layer-modes-legacy/gimpoperationhsvcolorlegacy.c
@@ -78,7 +78,7 @@ gimp_operation_hsv_color_legacy_process (GeglOperation       *operation,
                                          const GeglRectangle *roi,
                                          gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_hsv_color_legacy_process_pixels (in_buf, aux_buf, aux2_buf,
                                                          out_buf,
diff --git a/app/operations/layer-modes-legacy/gimpoperationhsvhuelegacy.c 
b/app/operations/layer-modes-legacy/gimpoperationhsvhuelegacy.c
index 41dd70d..556c9ee 100644
--- a/app/operations/layer-modes-legacy/gimpoperationhsvhuelegacy.c
+++ b/app/operations/layer-modes-legacy/gimpoperationhsvhuelegacy.c
@@ -78,7 +78,7 @@ gimp_operation_hsv_hue_legacy_process (GeglOperation       *operation,
                                        const GeglRectangle *roi,
                                        gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_hsv_hue_legacy_process_pixels (in_buf, aux_buf, aux2_buf,
                                                        out_buf,
diff --git a/app/operations/layer-modes-legacy/gimpoperationhsvhuelegacy.h 
b/app/operations/layer-modes-legacy/gimpoperationhsvhuelegacy.h
index 943145a..f4f0967 100644
--- a/app/operations/layer-modes-legacy/gimpoperationhsvhuelegacy.h
+++ b/app/operations/layer-modes-legacy/gimpoperationhsvhuelegacy.h
@@ -62,5 +62,4 @@ gboolean gimp_operation_hsv_hue_legacy_process_pixels (gfloat                *in
                                                        GimpLayerCompositeMode composite_mode);
 
 
-
 #endif /* __GIMP_OPERATION_HSV_HUE_LEGACY_H__ */
diff --git a/app/operations/layer-modes-legacy/gimpoperationhsvsaturationlegacy.c 
b/app/operations/layer-modes-legacy/gimpoperationhsvsaturationlegacy.c
index f226990..196fb93 100644
--- a/app/operations/layer-modes-legacy/gimpoperationhsvsaturationlegacy.c
+++ b/app/operations/layer-modes-legacy/gimpoperationhsvsaturationlegacy.c
@@ -78,7 +78,7 @@ gimp_operation_hsv_saturation_legacy_process (GeglOperation       *operation,
                                               const GeglRectangle *roi,
                                               gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_hsv_saturation_legacy_process_pixels (in_buf, aux_buf, aux2_buf,
                                                               out_buf,
diff --git a/app/operations/layer-modes-legacy/gimpoperationhsvvaluelegacy.c 
b/app/operations/layer-modes-legacy/gimpoperationhsvvaluelegacy.c
index 7c41aa8..878cb0f 100644
--- a/app/operations/layer-modes-legacy/gimpoperationhsvvaluelegacy.c
+++ b/app/operations/layer-modes-legacy/gimpoperationhsvvaluelegacy.c
@@ -78,7 +78,7 @@ gimp_operation_hsv_value_legacy_process (GeglOperation       *operation,
                                          const GeglRectangle *roi,
                                          gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_hsv_value_legacy_process_pixels (in_buf, aux_buf, aux2_buf,
                                                          out_buf,
diff --git a/app/operations/layer-modes-legacy/gimpoperationlightenonlylegacy.c 
b/app/operations/layer-modes-legacy/gimpoperationlightenonlylegacy.c
index 694b040..2c8094e 100644
--- a/app/operations/layer-modes-legacy/gimpoperationlightenonlylegacy.c
+++ b/app/operations/layer-modes-legacy/gimpoperationlightenonlylegacy.c
@@ -74,7 +74,7 @@ gimp_operation_lighten_only_legacy_process (GeglOperation       *operation,
                                             const GeglRectangle *roi,
                                             gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_lighten_only_legacy_process_pixels (in_buf, aux_buf, aux2_buf,
                                                             out_buf,
diff --git a/app/operations/layer-modes-legacy/gimpoperationmultiplylegacy.c 
b/app/operations/layer-modes-legacy/gimpoperationmultiplylegacy.c
index c08fba6..8fc5fa3 100644
--- a/app/operations/layer-modes-legacy/gimpoperationmultiplylegacy.c
+++ b/app/operations/layer-modes-legacy/gimpoperationmultiplylegacy.c
@@ -74,7 +74,7 @@ gimp_operation_multiply_legacy_process (GeglOperation       *operation,
                                         const GeglRectangle *roi,
                                         gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_multiply_legacy_process_pixels (in_buf, aux_buf, aux2_buf,
                                                         out_buf,
diff --git a/app/operations/layer-modes-legacy/gimpoperationmultiplylegacy.h 
b/app/operations/layer-modes-legacy/gimpoperationmultiplylegacy.h
index a902588..86ac528 100644
--- a/app/operations/layer-modes-legacy/gimpoperationmultiplylegacy.h
+++ b/app/operations/layer-modes-legacy/gimpoperationmultiplylegacy.h
@@ -61,4 +61,5 @@ gboolean gimp_operation_multiply_legacy_process_pixels (gfloat                *i
                                                         GimpLayerBlendTRC      composite_trc,
                                                         GimpLayerCompositeMode composite_mode);
 
+
 #endif /* __GIMP_OPERATION_MULTIPLY_LEGACY_H__ */
diff --git a/app/operations/layer-modes-legacy/gimpoperationscreenlegacy.c 
b/app/operations/layer-modes-legacy/gimpoperationscreenlegacy.c
index 464833e..4c587ec 100644
--- a/app/operations/layer-modes-legacy/gimpoperationscreenlegacy.c
+++ b/app/operations/layer-modes-legacy/gimpoperationscreenlegacy.c
@@ -74,7 +74,7 @@ gimp_operation_screen_legacy_process (GeglOperation       *operation,
                                       const GeglRectangle *roi,
                                       gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_screen_legacy_process_pixels (in_buf, aux_buf, aux2_buf,
                                                       out_buf,
diff --git a/app/operations/layer-modes-legacy/gimpoperationsubtractlegacy.c 
b/app/operations/layer-modes-legacy/gimpoperationsubtractlegacy.c
index 5078876..9261335 100644
--- a/app/operations/layer-modes-legacy/gimpoperationsubtractlegacy.c
+++ b/app/operations/layer-modes-legacy/gimpoperationsubtractlegacy.c
@@ -74,7 +74,7 @@ gimp_operation_subtract_legacy_process (GeglOperation       *operation,
                                         const GeglRectangle *roi,
                                         gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_subtract_legacy_process_pixels (in_buf, aux_buf, aux2_buf,
                                                         out_buf,
diff --git a/app/operations/layer-modes/gimpoperationaddition.c 
b/app/operations/layer-modes/gimpoperationaddition.c
index 45ba98c..5d11e20 100644
--- a/app/operations/layer-modes/gimpoperationaddition.c
+++ b/app/operations/layer-modes/gimpoperationaddition.c
@@ -76,7 +76,8 @@ gimp_operation_addition_process (GeglOperation       *operation,
                                  const GeglRectangle *roi,
                                  gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
+
   return gimp_operation_addition_process_pixels (in_buf, aux_buf, aux2_buf,
                                                  out_buf,
                                                  layer_mode->opacity,
diff --git a/app/operations/layer-modes/gimpoperationbehind.c 
b/app/operations/layer-modes/gimpoperationbehind.c
index 2a10358..f100a85 100644
--- a/app/operations/layer-modes/gimpoperationbehind.c
+++ b/app/operations/layer-modes/gimpoperationbehind.c
@@ -74,7 +74,7 @@ gimp_operation_behind_process (GeglOperation       *operation,
                                const GeglRectangle *roi,
                                gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (void*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_behind_process_pixels (in_buf, aux_buf, aux2_buf,
                                                out_buf,
diff --git a/app/operations/layer-modes/gimpoperationburn.c b/app/operations/layer-modes/gimpoperationburn.c
index 10ed4a8..1b7e28f 100644
--- a/app/operations/layer-modes/gimpoperationburn.c
+++ b/app/operations/layer-modes/gimpoperationburn.c
@@ -29,6 +29,7 @@
 #include "gimpoperationburn.h"
 #include "gimpblendcomposite.h"
 
+
 static gboolean gimp_operation_burn_process (GeglOperation       *operation,
                                              void                *in_buf,
                                              void                *aux_buf,
@@ -75,7 +76,7 @@ gimp_operation_burn_process (GeglOperation       *operation,
                              const GeglRectangle *roi,
                              gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (void*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_burn_process_pixels (in_buf, aux_buf, aux2_buf,
                                              out_buf,
@@ -86,7 +87,6 @@ gimp_operation_burn_process (GeglOperation       *operation,
                                              layer_mode->composite_mode);
 }
 
-
 gboolean
 gimp_operation_burn_process_pixels (gfloat                *in,
                                     gfloat                *layer,
@@ -100,8 +100,8 @@ gimp_operation_burn_process_pixels (gfloat                *in,
                                     GimpLayerBlendTRC      composite_trc,
                                     GimpLayerCompositeMode composite_mode)
 {
-  gimp_composite_blend (in, layer, mask, out, opacity, samples, blend_trc,
-                        composite_trc, composite_mode, blendfun_burn);
+  gimp_composite_blend (in, layer, mask, out, opacity, samples,
+                        blend_trc, composite_trc, composite_mode,
+                        blendfun_burn);
   return TRUE;
 }
-
diff --git a/app/operations/layer-modes/gimpoperationcolorerase.c 
b/app/operations/layer-modes/gimpoperationcolorerase.c
index 5ed15fa..7f15f74 100644
--- a/app/operations/layer-modes/gimpoperationcolorerase.c
+++ b/app/operations/layer-modes/gimpoperationcolorerase.c
@@ -78,7 +78,7 @@ gimp_operation_color_erase_process (GeglOperation       *operation,
                                     const GeglRectangle *roi,
                                     gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (void*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_color_erase_process_pixels (in_buf, aux_buf, aux2_buf,
                                                     out_buf,
diff --git a/app/operations/layer-modes/gimpoperationdarkenonly.c 
b/app/operations/layer-modes/gimpoperationdarkenonly.c
index 5efb5f1..88fba86 100644
--- a/app/operations/layer-modes/gimpoperationdarkenonly.c
+++ b/app/operations/layer-modes/gimpoperationdarkenonly.c
@@ -76,7 +76,7 @@ gimp_operation_darken_only_process (GeglOperation       *operation,
                                     const GeglRectangle *roi,
                                     gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (void*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_darken_only_process_pixels (in_buf, aux_buf, aux2_buf,
                                                     out_buf,
diff --git a/app/operations/layer-modes/gimpoperationdifference.c 
b/app/operations/layer-modes/gimpoperationdifference.c
index 682306d..4e2710f 100644
--- a/app/operations/layer-modes/gimpoperationdifference.c
+++ b/app/operations/layer-modes/gimpoperationdifference.c
@@ -76,7 +76,7 @@ gimp_operation_difference_process (GeglOperation       *operation,
                                    const GeglRectangle *roi,
                                    gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (void*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_difference_process_pixels (in_buf, aux_buf, aux2_buf,
                                                    out_buf,
diff --git a/app/operations/layer-modes/gimpoperationdifference.h 
b/app/operations/layer-modes/gimpoperationdifference.h
index 85768a5..605f69c 100644
--- a/app/operations/layer-modes/gimpoperationdifference.h
+++ b/app/operations/layer-modes/gimpoperationdifference.h
@@ -50,7 +50,6 @@ struct _GimpOperationDifferenceClass
 
 GType    gimp_operation_difference_get_type       (void) G_GNUC_CONST;
 
-
 gboolean gimp_operation_difference_process_pixels (gfloat                *in,
                                                    gfloat                *layer,
                                                    gfloat                *mask,
diff --git a/app/operations/layer-modes/gimpoperationdissolve.c 
b/app/operations/layer-modes/gimpoperationdissolve.c
index 0097f91..acfbf0d 100644
--- a/app/operations/layer-modes/gimpoperationdissolve.c
+++ b/app/operations/layer-modes/gimpoperationdissolve.c
@@ -90,7 +90,7 @@ gimp_operation_dissolve_process (GeglOperation       *operation,
                                  const GeglRectangle *result,
                                  gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (void*) operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_dissolve_process_pixels (in_buf, aux_buf, aux2_buf,
                                                  out_buf,
diff --git a/app/operations/layer-modes/gimpoperationdivide.c 
b/app/operations/layer-modes/gimpoperationdivide.c
index 76cc085..a7fadb4 100644
--- a/app/operations/layer-modes/gimpoperationdivide.c
+++ b/app/operations/layer-modes/gimpoperationdivide.c
@@ -76,7 +76,7 @@ gimp_operation_divide_process (GeglOperation       *operation,
                                const GeglRectangle *roi,
                                gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (void*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_divide_process_pixels (in_buf, aux_buf, aux2_buf,
                                                out_buf,
diff --git a/app/operations/layer-modes/gimpoperationdodge.c b/app/operations/layer-modes/gimpoperationdodge.c
index 85878a5..ee7dd51 100644
--- a/app/operations/layer-modes/gimpoperationdodge.c
+++ b/app/operations/layer-modes/gimpoperationdodge.c
@@ -76,7 +76,7 @@ gimp_operation_dodge_process (GeglOperation       *operation,
                               const GeglRectangle *roi,
                               gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (void*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_dodge_process_pixels (in_buf, aux_buf, aux2_buf,
                                               out_buf,
diff --git a/app/operations/layer-modes/gimpoperationgrainextract.c 
b/app/operations/layer-modes/gimpoperationgrainextract.c
index e044703..8fd99da 100644
--- a/app/operations/layer-modes/gimpoperationgrainextract.c
+++ b/app/operations/layer-modes/gimpoperationgrainextract.c
@@ -76,7 +76,8 @@ gimp_operation_grain_extract_process (GeglOperation       *operation,
                                       const GeglRectangle *roi,
                                       gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
+
   return gimp_operation_grain_extract_process_pixels (in_buf, aux_buf, aux2_buf,
                                                       out_buf,
                                                       layer_mode->opacity,
diff --git a/app/operations/layer-modes/gimpoperationgrainmerge.c 
b/app/operations/layer-modes/gimpoperationgrainmerge.c
index 937d1c8..0858f49 100644
--- a/app/operations/layer-modes/gimpoperationgrainmerge.c
+++ b/app/operations/layer-modes/gimpoperationgrainmerge.c
@@ -76,7 +76,8 @@ gimp_operation_grain_merge_process (GeglOperation       *operation,
                                     const GeglRectangle *roi,
                                     gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
+
   return gimp_operation_grain_merge_process_pixels (in_buf, aux_buf, aux2_buf,
                                                     out_buf,
                                                     layer_mode->opacity,
diff --git a/app/operations/layer-modes/gimpoperationhardlight.c 
b/app/operations/layer-modes/gimpoperationhardlight.c
index bc15ab4..926ad58 100644
--- a/app/operations/layer-modes/gimpoperationhardlight.c
+++ b/app/operations/layer-modes/gimpoperationhardlight.c
@@ -75,7 +75,7 @@ gimp_operation_hardlight_process (GeglOperation       *operation,
                                   const GeglRectangle *roi,
                                   gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_hardlight_process_pixels (in_buf, aux_buf, aux2_buf,
                                                   out_buf,
diff --git a/app/operations/layer-modes/gimpoperationhsvcolor.c 
b/app/operations/layer-modes/gimpoperationhsvcolor.c
index 24a3da9..16d0dba 100644
--- a/app/operations/layer-modes/gimpoperationhsvcolor.c
+++ b/app/operations/layer-modes/gimpoperationhsvcolor.c
@@ -80,7 +80,7 @@ gimp_operation_hsv_color_process (GeglOperation       *operation,
                                   const GeglRectangle *roi,
                                   gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_hsv_color_process_pixels (in_buf, aux_buf, aux2_buf,
                                                   out_buf,
diff --git a/app/operations/layer-modes/gimpoperationhsvhue.c 
b/app/operations/layer-modes/gimpoperationhsvhue.c
index 0ab0d79..05ae6a0 100644
--- a/app/operations/layer-modes/gimpoperationhsvhue.c
+++ b/app/operations/layer-modes/gimpoperationhsvhue.c
@@ -80,7 +80,7 @@ gimp_operation_hsv_hue_process (GeglOperation       *operation,
                                 const GeglRectangle *roi,
                                 gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_hsv_hue_process_pixels (in_buf, aux_buf, aux2_buf,
                                                 out_buf,
diff --git a/app/operations/layer-modes/gimpoperationhsvsaturation.c 
b/app/operations/layer-modes/gimpoperationhsvsaturation.c
index bb40040..ad463da 100644
--- a/app/operations/layer-modes/gimpoperationhsvsaturation.c
+++ b/app/operations/layer-modes/gimpoperationhsvsaturation.c
@@ -80,7 +80,8 @@ gimp_operation_hsv_saturation_process (GeglOperation       *operation,
                                        const GeglRectangle *roi,
                                        gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
+
   return gimp_operation_hsv_saturation_process_pixels (in_buf, aux_buf, aux2_buf,
                                                        out_buf,
                                                        layer_mode->opacity,
diff --git a/app/operations/layer-modes/gimpoperationhsvvalue.c 
b/app/operations/layer-modes/gimpoperationhsvvalue.c
index 35dfe5b..6c52cd1 100644
--- a/app/operations/layer-modes/gimpoperationhsvvalue.c
+++ b/app/operations/layer-modes/gimpoperationhsvvalue.c
@@ -80,7 +80,8 @@ gimp_operation_hsv_value_process (GeglOperation       *operation,
                                   const GeglRectangle *roi,
                                   gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
+
   return gimp_operation_hsv_value_process_pixels (in_buf, aux_buf, aux2_buf,
                                                   out_buf,
                                                   layer_mode->opacity,
diff --git a/app/operations/layer-modes/gimpoperationlightenonly.c 
b/app/operations/layer-modes/gimpoperationlightenonly.c
index 848f3f8..68e3adb 100644
--- a/app/operations/layer-modes/gimpoperationlightenonly.c
+++ b/app/operations/layer-modes/gimpoperationlightenonly.c
@@ -76,7 +76,7 @@ gimp_operation_lighten_only_process (GeglOperation       *operation,
                                      const GeglRectangle *roi,
                                      gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_lighten_only_process_pixels (in_buf, aux_buf, aux2_buf,
                                                      out_buf,
diff --git a/app/operations/layer-modes/gimpoperationmultiply.c 
b/app/operations/layer-modes/gimpoperationmultiply.c
index c4c21ad..5029665 100644
--- a/app/operations/layer-modes/gimpoperationmultiply.c
+++ b/app/operations/layer-modes/gimpoperationmultiply.c
@@ -76,7 +76,7 @@ gimp_operation_multiply_process (GeglOperation       *operation,
                                  const GeglRectangle *roi,
                                  gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_multiply_process_pixels (in_buf, aux_buf, aux2_buf,
                                                  out_buf,
diff --git a/app/operations/layer-modes/gimpoperationnormal.c 
b/app/operations/layer-modes/gimpoperationnormal.c
index 9841ba1..412066e 100644
--- a/app/operations/layer-modes/gimpoperationnormal.c
+++ b/app/operations/layer-modes/gimpoperationnormal.c
@@ -173,7 +173,7 @@ gimp_operation_normal_process (GeglOperation       *operation,
                                const GeglRectangle *roi,
                                gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_normal_process_pixels (in_buf, aux_buf, aux2_buf,
                                                out_buf,
diff --git a/app/operations/layer-modes/gimpoperationoverlay.c 
b/app/operations/layer-modes/gimpoperationoverlay.c
index b214269..ed4e6cd 100644
--- a/app/operations/layer-modes/gimpoperationoverlay.c
+++ b/app/operations/layer-modes/gimpoperationoverlay.c
@@ -75,7 +75,7 @@ gimp_operation_overlay_process (GeglOperation       *operation,
                                 const GeglRectangle *roi,
                                 gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_overlay_process_pixels (in_buf, aux_buf, aux2_buf,
                                                 out_buf,
diff --git a/app/operations/layer-modes/gimpoperationreplace.c 
b/app/operations/layer-modes/gimpoperationreplace.c
index f2c0a83..60ce29d 100644
--- a/app/operations/layer-modes/gimpoperationreplace.c
+++ b/app/operations/layer-modes/gimpoperationreplace.c
@@ -73,7 +73,7 @@ gimp_operation_replace_process (GeglOperation       *operation,
                                 const GeglRectangle *roi,
                                 gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_replace_process_pixels (in_buf, aux_buf, aux2_buf,
                                                 out_buf,
diff --git a/app/operations/layer-modes/gimpoperationscreen.c 
b/app/operations/layer-modes/gimpoperationscreen.c
index 6d8eac1..6298eef 100644
--- a/app/operations/layer-modes/gimpoperationscreen.c
+++ b/app/operations/layer-modes/gimpoperationscreen.c
@@ -76,7 +76,8 @@ gimp_operation_screen_process (GeglOperation       *operation,
                                const GeglRectangle *roi,
                                gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
+
   return gimp_operation_screen_process_pixels (in_buf, aux_buf, aux2_buf,
                                                out_buf,
                                                layer_mode->opacity,
diff --git a/app/operations/layer-modes/gimpoperationsoftlight.c 
b/app/operations/layer-modes/gimpoperationsoftlight.c
index 3059910..c4d10d4 100644
--- a/app/operations/layer-modes/gimpoperationsoftlight.c
+++ b/app/operations/layer-modes/gimpoperationsoftlight.c
@@ -93,7 +93,8 @@ gimp_operation_softlight_process (GeglOperation       *operation,
                                   const GeglRectangle *roi,
                                   gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
+
   return gimp_operation_softlight_process_pixels (in_buf, aux_buf, aux2_buf,
                                                   out_buf,
                                                   layer_mode->opacity,
diff --git a/app/operations/layer-modes/gimpoperationsoftlight.h 
b/app/operations/layer-modes/gimpoperationsoftlight.h
index 9977a9e..a4154fa 100644
--- a/app/operations/layer-modes/gimpoperationsoftlight.h
+++ b/app/operations/layer-modes/gimpoperationsoftlight.h
@@ -61,4 +61,5 @@ gboolean gimp_operation_softlight_process_pixels (gfloat                *in,
                                                   GimpLayerBlendTRC      composite_trc,
                                                   GimpLayerCompositeMode composite_mode);
 
+
 #endif /* __GIMP_OPERATION_SOFTLIGHT_H__ */
diff --git a/app/operations/layer-modes/gimpoperationsubtract.c 
b/app/operations/layer-modes/gimpoperationsubtract.c
index 84f53d0..a01d578 100644
--- a/app/operations/layer-modes/gimpoperationsubtract.c
+++ b/app/operations/layer-modes/gimpoperationsubtract.c
@@ -76,7 +76,7 @@ gimp_operation_subtract_process (GeglOperation       *operation,
                                  const GeglRectangle *roi,
                                  gint                 level)
 {
-  GimpOperationPointLayerMode *layer_mode = (GimpOperationPointLayerMode*)operation;
+  GimpOperationPointLayerMode *layer_mode = (gpointer) operation;
 
   return gimp_operation_subtract_process_pixels (in_buf, aux_buf, aux2_buf,
                                                  out_buf,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]