Skip to content

Commit ff4c93f

Browse files
committed
wb: tiny clean-up: unnecessary parens, accidental duplication
1 parent a10e8e0 commit ff4c93f

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/iop/channelmixerrgb.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2238,7 +2238,7 @@ void process(dt_iop_module_t *self,
22382238
dt_aligned_pixel_t correction_ratios;
22392239
_get_d65_correction_ratios(self, correction_ratios);
22402240

2241-
if(find_illuminant_xy_from_as_shot_coeffs(&(self->dev->image_storage), correction_ratios, &(x), &(y)))
2241+
if(find_illuminant_xy_from_as_shot_coeffs(&(self->dev->image_storage), correction_ratios, &x, &y))
22422242
{
22432243
// Convert illuminant from xyY to XYZ
22442244
dt_aligned_pixel_t XYZ;
@@ -2255,7 +2255,7 @@ void process(dt_iop_module_t *self,
22552255
// which don't come from the EXIF this time).
22562256
float x, y;
22572257

2258-
if(find_illuminant_xy_from_wb_coeffs(&(self->dev->image_storage), self->dev->chroma.wb_coeffs, &(x), &(y)))
2258+
if(find_illuminant_xy_from_wb_coeffs(&(self->dev->image_storage), self->dev->chroma.wb_coeffs, &x, &y))
22592259
{
22602260
// Convert illuminant from xyY to XYZ
22612261
dt_aligned_pixel_t XYZ;
@@ -2366,7 +2366,7 @@ int process_cl(dt_iop_module_t *self,
23662366
dt_aligned_pixel_t correction_ratios;
23672367
_get_d65_correction_ratios(self, correction_ratios);
23682368

2369-
if(find_illuminant_xy_from_as_shot_coeffs(&(self->dev->image_storage), correction_ratios, &(x), &(y)))
2369+
if(find_illuminant_xy_from_as_shot_coeffs(&(self->dev->image_storage), correction_ratios, &x, &y))
23702370
{
23712371
// Convert illuminant from xyY to XYZ
23722372
dt_aligned_pixel_t XYZ;
@@ -2383,7 +2383,7 @@ int process_cl(dt_iop_module_t *self,
23832383
// which don't come from the EXIF this time).
23842384
float x, y;
23852385

2386-
if(find_illuminant_xy_from_wb_coeffs(&(self->dev->image_storage), self->dev->chroma.wb_coeffs, &(x), &(y)))
2386+
if(find_illuminant_xy_from_wb_coeffs(&(self->dev->image_storage), self->dev->chroma.wb_coeffs, &x, &y))
23872387
{
23882388
// Convert illuminant from xyY to XYZ
23892389
dt_aligned_pixel_t XYZ;
@@ -3201,7 +3201,7 @@ void commit_params(dt_iop_module_t *self,
32013201
// if illuminant is from camera or user WB coefficients, x and y are set on-the-fly at
32023202
// commit time, so we need to set adaptation too
32033203
if(p->illuminant == DT_ILLUMINANT_CAMERA || p->illuminant == DT_ILLUMINANT_FROM_WB)
3204-
_check_if_close_to_daylight(x, y, NULL, NULL, &(d->adaptation));
3204+
_check_if_close_to_daylight(x, y, NULL, NULL, &(d->adaptation));
32053205
d->illuminant_type = p->illuminant;
32063206

32073207
// Convert illuminant from xyY to XYZ

src/iop/temperature.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ void reload_defaults(dt_iop_module_t *self)
15771577
dt_iop_temperature_params_t *d = self->default_params;
15781578
dt_iop_temperature_params_t *p = self->params;
15791579

1580-
d->preset = p->preset = DT_IOP_TEMP_AS_SHOT;
1580+
d->preset = DT_IOP_TEMP_AS_SHOT;
15811581
d->late_correction = p->late_correction = dt_is_scene_referred();
15821582

15831583
float *dcoeffs = (float *)d;
@@ -1663,7 +1663,7 @@ void reload_defaults(dt_iop_module_t *self)
16631663
STR_YESNO(another_cat_defined),
16641664
daylights[0], daylights[1], daylights[2], as_shot[0], as_shot[1], as_shot[2]);
16651665

1666-
d->preset = p->preset = DT_IOP_TEMP_AS_SHOT;
1666+
d->preset = DT_IOP_TEMP_AS_SHOT;
16671667

16681668
// White balance module doesn't need to be enabled for true_monochrome raws (like
16691669
// for leica monochrom cameras). prepare_matrices is a noop as well, as there

0 commit comments

Comments
 (0)