another cppcheck fixes