[vtk-developers] vtkNew in examples (or auto?)

Marcus D. Hanwell marcus.hanwell at kitware.com
Mon Jun 26 15:07:39 EDT 2017


On Mon, Jun 26, 2017 at 2:07 PM, Brad King <brad.king at kitware.com> wrote:
> On 06/26/2017 01:06 PM, Marcus D. Hanwell wrote:
>> If that is detracting from using vtkNew then I think we should add the
>> single line to vtkNew.
>>
>> I will see about putting in a patch for this soon. I really would
>> rather get rid of the duplication in the examples by preferring vtkNew
>> or using auto. It is harder to read, and needlessly repeats the class
>> name in my opinion.
>
> FYI: https://gitlab.kitware.com/vtk/vtk/merge_requests/2961
>
Thanks Brad, Bill pointed it out to me and I commented. I think it is
time to make the vtkNew interface more consistent, and I regret my
youthful desire for purity in the face of inconsistency :-)


More information about the vtk-developers mailing list