Correct Cppcheck errors.