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;