mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Modernize various files (part 2)
* range-based for loops * emplace_back instead of push_back * code style * C++ headers instead of C headers * Default operators * empty stl function
This commit is contained in:
parent
55ab4264dc
commit
1d086aee7c
10 changed files with 107 additions and 152 deletions
|
@ -172,7 +172,7 @@ class InventoryList
|
|||
{
|
||||
public:
|
||||
InventoryList(const std::string &name, u32 size, IItemDefManager *itemdef);
|
||||
~InventoryList();
|
||||
~InventoryList() = default;
|
||||
void clearItems();
|
||||
void setSize(u32 newsize);
|
||||
void setWidth(u32 newWidth);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue