tinyply icon indicating copy to clipboard operation
tinyply copied to clipboard

non-const uint8_t*

Open tobysharp opened this issue 6 years ago • 1 comments

In PlyFile::add_properties_to_element I notice that argument uint8_t* data is a pointer to non-const data. Is this buffer modified by the function? If so, some comment to that effect would be helpful. If not, please change to const uint8_t* data.

tobysharp avatar May 01 '20 13:05 tobysharp

Hi @tobysharp thanks - I've fixed/updated this behavior in ca7b279fb6c9af931ffdaed96a3b11ca3ccd79ea. PlyFile::add_properties_to_element now respects const input pointers.

ddiakopoulos avatar May 17 '20 22:05 ddiakopoulos