gimp r25813 - in trunk: . app/gegl



Author: mitch
Date: Mon May 26 18:25:04 2008
New Revision: 25813
URL: http://svn.gnome.org/viewvc/gimp?rev=25813&view=rev

Log:
2008-05-26  Michael Natterer  <mitch gimp org>

	* app/gegl/gimpcolorbalanceconfig.c
	* app/gegl/gimpcurvesconfig.c
	* app/gegl/gimphuesaturationconfig.c
	* app/gegl/gimplevelsconfig.c (equal): sanitize local variable
	names: s/a_config/config_a/, s/b_config/config_b/.



Modified:
   trunk/ChangeLog
   trunk/app/gegl/gimpcolorbalanceconfig.c
   trunk/app/gegl/gimpcurvesconfig.c
   trunk/app/gegl/gimphuesaturationconfig.c
   trunk/app/gegl/gimplevelsconfig.c

Modified: trunk/app/gegl/gimpcolorbalanceconfig.c
==============================================================================
--- trunk/app/gegl/gimpcolorbalanceconfig.c	(original)
+++ trunk/app/gegl/gimpcolorbalanceconfig.c	Mon May 26 18:25:04 2008
@@ -275,21 +275,21 @@
 gimp_color_balance_config_equal (GimpConfig *a,
                                  GimpConfig *b)
 {
-  GimpColorBalanceConfig *a_config = GIMP_COLOR_BALANCE_CONFIG (a);
-  GimpColorBalanceConfig *b_config = GIMP_COLOR_BALANCE_CONFIG (b);
+  GimpColorBalanceConfig *config_a = GIMP_COLOR_BALANCE_CONFIG (a);
+  GimpColorBalanceConfig *config_b = GIMP_COLOR_BALANCE_CONFIG (b);
   GimpTransferMode        range;
 
   for (range = GIMP_SHADOWS; range <= GIMP_HIGHLIGHTS; range++)
     {
-      if (a_config->cyan_red[range]      != b_config->cyan_red[range]      ||
-          a_config->magenta_green[range] != b_config->magenta_green[range] ||
-          a_config->yellow_blue[range]   != b_config->yellow_blue[range])
+      if (config_a->cyan_red[range]      != config_b->cyan_red[range]      ||
+          config_a->magenta_green[range] != config_b->magenta_green[range] ||
+          config_a->yellow_blue[range]   != config_b->yellow_blue[range])
         return FALSE;
     }
 
   /* don't compare "range" */
 
-  if (a_config->preserve_luminosity != b_config->preserve_luminosity)
+  if (config_a->preserve_luminosity != config_b->preserve_luminosity)
     return FALSE;
 
   return TRUE;

Modified: trunk/app/gegl/gimpcurvesconfig.c
==============================================================================
--- trunk/app/gegl/gimpcurvesconfig.c	(original)
+++ trunk/app/gegl/gimpcurvesconfig.c	Mon May 26 18:25:04 2008
@@ -277,24 +277,24 @@
 gimp_curves_config_equal (GimpConfig *a,
                           GimpConfig *b)
 {
-  GimpCurvesConfig     *a_config = GIMP_CURVES_CONFIG (a);
-  GimpCurvesConfig     *b_config = GIMP_CURVES_CONFIG (b);
+  GimpCurvesConfig     *config_a = GIMP_CURVES_CONFIG (a);
+  GimpCurvesConfig     *config_b = GIMP_CURVES_CONFIG (b);
   GimpHistogramChannel  channel;
 
   for (channel = GIMP_HISTOGRAM_VALUE;
        channel <= GIMP_HISTOGRAM_ALPHA;
        channel++)
     {
-      GimpCurve *a_curve = a_config->curve[channel];
-      GimpCurve *b_curve = b_config->curve[channel];
+      GimpCurve *curve_a = config_a->curve[channel];
+      GimpCurve *curve_b = config_b->curve[channel];
 
-      if (a_curve && b_curve)
+      if (curve_a && curve_b)
         {
-          if (! gimp_config_is_equal_to (GIMP_CONFIG (a_curve),
-                                         GIMP_CONFIG (b_curve)))
+          if (! gimp_config_is_equal_to (GIMP_CONFIG (curve_a),
+                                         GIMP_CONFIG (curve_b)))
             return FALSE;
         }
-      else if (a_curve || b_curve)
+      else if (curve_a || curve_b)
         {
           return FALSE;
         }

Modified: trunk/app/gegl/gimphuesaturationconfig.c
==============================================================================
--- trunk/app/gegl/gimphuesaturationconfig.c	(original)
+++ trunk/app/gegl/gimphuesaturationconfig.c	Mon May 26 18:25:04 2008
@@ -268,21 +268,21 @@
 gimp_hue_saturation_config_equal (GimpConfig *a,
                                   GimpConfig *b)
 {
-  GimpHueSaturationConfig *a_config = GIMP_HUE_SATURATION_CONFIG (a);
-  GimpHueSaturationConfig *b_config = GIMP_HUE_SATURATION_CONFIG (b);
+  GimpHueSaturationConfig *config_a = GIMP_HUE_SATURATION_CONFIG (a);
+  GimpHueSaturationConfig *config_b = GIMP_HUE_SATURATION_CONFIG (b);
   GimpHueRange             range;
 
   for (range = GIMP_ALL_HUES; range <= GIMP_MAGENTA_HUES; range++)
     {
-      if (a_config->hue[range]        != b_config->hue[range]        ||
-          a_config->saturation[range] != b_config->saturation[range] ||
-          a_config->lightness[range]  != b_config->lightness[range])
+      if (config_a->hue[range]        != config_b->hue[range]        ||
+          config_a->saturation[range] != config_b->saturation[range] ||
+          config_a->lightness[range]  != config_b->lightness[range])
         return FALSE;
     }
 
   /* don't compare "range" */
 
-  if (a_config->overlap != b_config->overlap)
+  if (config_a->overlap != config_b->overlap)
     return FALSE;
 
   return TRUE;

Modified: trunk/app/gegl/gimplevelsconfig.c
==============================================================================
--- trunk/app/gegl/gimplevelsconfig.c	(original)
+++ trunk/app/gegl/gimplevelsconfig.c	Mon May 26 18:25:04 2008
@@ -288,19 +288,19 @@
 gimp_levels_config_equal (GimpConfig *a,
                           GimpConfig *b)
 {
-  GimpLevelsConfig     *a_config = GIMP_LEVELS_CONFIG (a);
-  GimpLevelsConfig     *b_config = GIMP_LEVELS_CONFIG (b);
+  GimpLevelsConfig     *config_a = GIMP_LEVELS_CONFIG (a);
+  GimpLevelsConfig     *config_b = GIMP_LEVELS_CONFIG (b);
   GimpHistogramChannel  channel;
 
   for (channel = GIMP_HISTOGRAM_VALUE;
        channel <= GIMP_HISTOGRAM_ALPHA;
        channel++)
     {
-      if (a_config->gamma[channel]       != b_config->gamma[channel]      ||
-          a_config->low_input[channel]   != b_config->low_input[channel]  ||
-          a_config->high_input[channel]  != b_config->high_input[channel] ||
-          a_config->low_output[channel]  != b_config->low_output[channel] ||
-          a_config->high_output[channel] != b_config->high_output[channel])
+      if (config_a->gamma[channel]       != config_b->gamma[channel]      ||
+          config_a->low_input[channel]   != config_b->low_input[channel]  ||
+          config_a->high_input[channel]  != config_b->high_input[channel] ||
+          config_a->low_output[channel]  != config_b->low_output[channel] ||
+          config_a->high_output[channel] != config_b->high_output[channel])
         return FALSE;
     }
 



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