Tidying.
[libdcp.git] / src / gamma_transfer_function.cc
index 34501d98126b59e4b0b9e39c5ba8a841e7bf738e..1875221e3ccc296c2b3087519fb9ee9cf8271b4f 100644 (file)
@@ -58,7 +58,7 @@ double *
 GammaTransferFunction::make_lut (int bit_depth, bool inverse) const
 {
        int const bit_length = int(std::pow(2.0f, bit_depth));
-       double* lut = new double[bit_length];
+       auto lut = new double[bit_length];
        double const gamma = inverse ? (1 / _gamma) : _gamma;
        for (int i = 0; i < bit_length; ++i) {
                lut[i] = pow(double(i) / (bit_length - 1), gamma);