About replacing some "C-Array" into std::array

Kaganski Mike mikekaganski at hotmail.com
Fri Nov 22 15:44:40 UTC 2019


On 22.11.2019 18:31, julien2412 wrote:
> Taking a look at cppcheck report, I noticed this kind of reports:
> vcl/source/treelist/transfer.cxx
> 132	useStlAlgorithm	398	style	Consider using std::fill algorithm instead of
> a raw loop
> 
> To use std::fill, we'd need to convert the C array into std::array.

I don't see why is the conversion required specifically for using STL. A 
pointer inside the array is a perfect iterator, that STL can use. (No 
objections against conversion where it has benefits :-))

-- 
Best regards,
Mike Kaganski


More information about the LibreOffice mailing list