Fix various copy instead of const ref reported by cppcheck (#5615)
authorLoïc Blot <nerzhul@users.noreply.github.com>
Wed, 19 Apr 2017 21:02:07 +0000 (23:02 +0200)
committerGitHub <noreply@github.com>
Wed, 19 Apr 2017 21:02:07 +0000 (23:02 +0200)
commitf3fe62a0bf9e775b3e6e838f104ab605a2238792
tree1335fc9752d54924dd3a8f22e70d555fb54945c8
parentcfe0291b131630a7400fdcf46b720bd70d8d0fa0
Fix various copy instead of const ref reported by cppcheck (#5615)

* Also remove InventoryList::peekItem unused function
* Fix some post increment to preincrement reported by cppcheck
13 files changed:
src/chat.cpp
src/chat.h
src/craftdef.h
src/environment.cpp
src/exceptions.h
src/game.cpp
src/httpfetch.cpp
src/inventory.cpp
src/inventory.h
src/script/common/c_content.cpp
src/script/common/c_content.h
src/script/lua_api/l_item.cpp
src/tool.h