change cppcheck method