summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/inventory.h b/src/inventory.h
index b4253b72..891a0d7b 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -30,7 +30,7 @@ class Item;
class InventoryListener
{
public:
- virtual ~InventoryListener() {}
+ virtual ~InventoryListener() = default;
virtual void slotsChanged(Inventory* inventory) = 0;
@@ -135,8 +135,7 @@ class Inventory
{ return mType == INVENTORY; }
protected:
- using InventoryListenerList = std::list<InventoryListener *>;
- InventoryListenerList mInventoryListeners;
+ std::list<InventoryListener *> mInventoryListeners;
void distributeSlotsChangedEvent();