mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Modernize source code: last part (#6285)
* Modernize source code: last par * Use empty when needed * Use emplace_back instead of push_back when needed * For range-based loops * Initializers fixes * constructors, destructors default * c++ C stl includes
This commit is contained in:
@@ -100,8 +100,9 @@ private:
|
||||
class IItemDefManager
|
||||
{
|
||||
public:
|
||||
IItemDefManager(){}
|
||||
virtual ~IItemDefManager(){}
|
||||
IItemDefManager() = default;
|
||||
|
||||
virtual ~IItemDefManager() = default;
|
||||
|
||||
// Get item definition
|
||||
virtual const ItemDefinition& get(const std::string &name) const=0;
|
||||
@@ -133,8 +134,9 @@ public:
|
||||
class IWritableItemDefManager : public IItemDefManager
|
||||
{
|
||||
public:
|
||||
IWritableItemDefManager(){}
|
||||
virtual ~IWritableItemDefManager(){}
|
||||
IWritableItemDefManager() = default;
|
||||
|
||||
virtual ~IWritableItemDefManager() = default;
|
||||
|
||||
// Get item definition
|
||||
virtual const ItemDefinition& get(const std::string &name) const=0;
|
||||
|
Reference in New Issue
Block a user