From d91cc3dce9abdfc12bd1289616f02cf9c12593b8 Mon Sep 17 00:00:00 2001 From: Ingo Weyrich Date: Mon, 13 Jul 2020 16:23:03 +0200 Subject: [PATCH] use reset() instead of assign to std::unique_ptr --- rtengine/curves.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/curves.cc b/rtengine/curves.cc index 13f443533..29fba9295 100644 --- a/rtengine/curves.cc +++ b/rtengine/curves.cc @@ -340,7 +340,7 @@ bool CurveFactory::diagonalCurve2Lut(const std::vector& curvePoints, LUT bool histNeeded = false; if (!curvePoints.empty() && curvePoints[0] != 0) { - dCurve = std::unique_ptr (new DiagonalCurve(curvePoints, CURVES_MIN_POLY_POINTS / skip)); + dCurve.reset(new DiagonalCurve(curvePoints, CURVES_MIN_POLY_POINTS / skip)); if (outBeforeCurveHistogram) { histNeeded = true;