diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-04-19 23:02:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-19 23:02:07 +0200 |
commit | f3fe62a0bf9e775b3e6e838f104ab605a2238792 (patch) | |
tree | 1335fc9752d54924dd3a8f22e70d555fb54945c8 /src/script/common/c_content.h | |
parent | cfe0291b131630a7400fdcf46b720bd70d8d0fa0 (diff) | |
download | minetest-f3fe62a0bf9e775b3e6e838f104ab605a2238792.tar.gz minetest-f3fe62a0bf9e775b3e6e838f104ab605a2238792.tar.bz2 minetest-f3fe62a0bf9e775b3e6e838f104ab605a2238792.zip |
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
Diffstat (limited to 'src/script/common/c_content.h')
-rw-r--r-- | src/script/common/c_content.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/common/c_content.h b/src/script/common/c_content.h index 949b136eb..c701c0384 100644 --- a/src/script/common/c_content.h +++ b/src/script/common/c_content.h @@ -86,8 +86,8 @@ ToolCapabilities read_tool_capabilities (lua_State *L, int table); void push_tool_capabilities (lua_State *L, const ToolCapabilities &prop); -ItemDefinition read_item_definition (lua_State *L, int index, - ItemDefinition default_def); +void read_item_definition (lua_State *L, int index, const ItemDefinition &default_def, + ItemDefinition &def); void read_object_properties (lua_State *L, int index, ObjectProperties *prop, IItemDefManager *idef); |