use reset() instead of assign to std::unique_ptr

This commit is contained in:
Ingo Weyrich 2020-07-13 16:23:03 +02:00
parent d22fcb9df1
commit d91cc3dce9

View File

@ -340,7 +340,7 @@ bool CurveFactory::diagonalCurve2Lut(const std::vector<double>& curvePoints, LUT
bool histNeeded = false;
if (!curvePoints.empty() && curvePoints[0] != 0) {
dCurve = std::unique_ptr<DiagonalCurve> (new DiagonalCurve(curvePoints, CURVES_MIN_POLY_POINTS / skip));
dCurve.reset(new DiagonalCurve(curvePoints, CURVES_MIN_POLY_POINTS / skip));
if (outBeforeCurveHistogram) {
histNeeded = true;