Use std::unique_ptr and reduce scope of local variables within vtkCurvatures.cxx
- Use
std::unique_ptr<T[]>
for local pointers, initialized bynew T[n]
. - Reduce scope of local variables, initializing and declaring them
const
where possible
std::unique_ptr<T[]>
for local pointers, initialized by new T[n]
.const
where possible