[cppcheck] performance