webots icon indicating copy to clipboard operation
webots copied to clipboard

Fix test sources with latest cppcheck

Open MNikoliCC opened this issue 11 months ago • 1 comments
trafficstars

Description Fix cpp code to pass the test sources with latest cppcheck.

Tasks Add the list of tasks of this PR.

  • [x] Fix cpp code issues

MNikoliCC avatar Dec 10 '24 10:12 MNikoliCC

After reviewing the issue with latest cppcheck, I suggest not to make further changes at this time. Addressing the warnings would require adding const to a large number of methods, which involves verifying that each method does not modify any member variables of the passed object.

While it would be possible to add const indiscriminately to pass the checks, this approach may not be entirely safe or appropriate without thorough validation. Therefore, I'm opting to leave the current implementation as is.

MNikoliCC avatar Dec 12 '24 10:12 MNikoliCC