cppcheck fix