Commit f0033acc authored by LE BRETON Come's avatar LE BRETON Come

Avoid using new on array construction.

parent 6d1676df
......@@ -414,7 +414,7 @@ void dtkVisualizationDecoratorScalarColorMap::setCurrentOpacityTransferFunction(
int size = opacity_function->GetSize();
double *val = new double[4];
double val[4];
double opacity_min = 1.;
for(std::size_t i = 0; i < size; ++i) {
opacity_function->GetNodeValue(i, val);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment