Commit e6ac9be6 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

app/gegl/gimpcolorbalanceconfig.c app/gegl/gimpcurvesconfig.c

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/.


svn path=/trunk/; revision=25813
parent a37509ec
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/.
2008-05-26 Michael Natterer <mitch@gimp.org>
* app/config/gimpbaseconfig.c
......
......@@ -275,21 +275,21 @@ static gboolean
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;
......
......@@ -277,24 +277,24 @@ static gboolean
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;
}
......
......@@ -268,21 +268,21 @@ static gboolean
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;
......
......@@ -288,19 +288,19 @@ static gboolean
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment