From 1c1c97cbd1d7913ac12bf550ec02c97f843a0fd3 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Sun, 20 Aug 2017 13:30:50 +0200 Subject: 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 --- src/itemdef.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/itemdef.h') diff --git a/src/itemdef.h b/src/itemdef.h index 4c754f1da..bca922d3a 100644 --- a/src/itemdef.h +++ b/src/itemdef.h @@ -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; -- cgit v1.2.3