Cppcheck

Fix some warning of cppcheck.