COMP: Fix all the cppcheck performance warnings for ANTS