COMP: Fix all the cppcheck performance warnings for ANTS

ANTS is built successfully.