From 34bdc9e0eb6c82c7965a131c646426a7fa00f308 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Wed, 21 Jun 2017 01:06:28 +0200 Subject: [PATCH] Fix some coverity issues --- rtengine/procparams.cc | 7 +++++++ rtengine/procparams.h | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/rtengine/procparams.cc b/rtengine/procparams.cc index 2619ec15d..fae6d3649 100644 --- a/rtengine/procparams.cc +++ b/rtengine/procparams.cc @@ -593,6 +593,13 @@ void ColorToningParams::getCurves(ColorGradientCurve &colorCurveLUT, OpacityCurv opacityCurveLUT.Set(oCurve, opautili); } } + +SharpeningParams::SharpeningParams() : enabled(false), radius(0.5), amount(200), threshold(20, 80, 2000, 1200, false), edgesonly(false), edges_radius(1.9), edges_tolerance(1800), halocontrol(false), halocontrol_amount(85), deconvamount(75), deconvradius(0.75), deconviter(30), deconvdamping(20) {}; + + +VibranceParams::VibranceParams() : enabled(false), pastels(0), saturated(0), psthreshold(0, 75, false), protectskins(false), avoidcolorshift(true), pastsattog(true) {}; + + //WaveletParams::WaveletParams (): hueskin(-5, 25, 170, 120, false), hueskin2(-260, -250, -130, -140, false), hllev(50, 75, 100, 98, false), bllev(0, 2, 50, 25, false), pastlev(0, 2, 30, 20, false), satlev(30, 45, 130, 100, false), edgcont(0, 20, 100, 75, false){ WaveletParams::WaveletParams (): hueskin(-5, 25, 170, 120, false), hueskin2(-260, -250, -130, -140, false), hllev(50, 75, 100, 98, false), bllev(0, 2, 50, 25, false), diff --git a/rtengine/procparams.h b/rtengine/procparams.h index 973986d85..00944bc59 100644 --- a/rtengine/procparams.h +++ b/rtengine/procparams.h @@ -467,7 +467,7 @@ public: int deconviter; int deconvdamping; - SharpeningParams() : threshold(20, 80, 2000, 1200, false) {}; + SharpeningParams(); }; class SharpenEdgeParams { @@ -502,7 +502,7 @@ public: bool pastsattog; std::vector skintonescurve; - VibranceParams() : psthreshold(0, 75, false) {}; + VibranceParams(); }; /**