COMP:Fixing the cppcheck issues for ANTS (last patch)