use reset() instead of assign to std::unique_ptr
This commit is contained in:
parent
d22fcb9df1
commit
d91cc3dce9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user