From 3ce39d2b497ab5356290a22b324181386af51c51 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Tue, 5 Mar 2024 10:13:15 +0100 Subject: General code cleanups * Use final for all message handlers, Client, LocalPlayer, Being::getType, Being::setPosition and Being::setMap. (avoids some warnings about virtual dispatch in constructors) * Use auto in more places * Use emplace_back instead of push_back in some places * Use default member initializers * Less else after return * Removed superfluous .c_str() * Removed type aliases that are only used once * Removed more unused includes --- src/resources/iteminfo.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/resources/iteminfo.h') diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h index 7344d668..5922b6c1 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -229,8 +229,7 @@ class TaItemInfo: public ItemInfo friend class TaItemDB; public: - TaItemInfo() - {} + TaItemInfo() = default; // Declare TmwAthena Specific item info here }; @@ -246,8 +245,7 @@ namespace ManaServ { class ManaServItemInfo: public ItemInfo { public: - ManaServItemInfo() - {} + ManaServItemInfo() = default; // Declare Manaserv Specific item info here }; -- cgit v1.2.3-70-g09d2