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/net/manaserv/playerhandler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/manaserv/playerhandler.h') diff --git a/src/net/manaserv/playerhandler.h b/src/net/manaserv/playerhandler.h index e2a52d4d..a14e3ed5 100644 --- a/src/net/manaserv/playerhandler.h +++ b/src/net/manaserv/playerhandler.h @@ -30,13 +30,13 @@ namespace ManaServ { -struct RespawnRequestListener : public gcn::ActionListener +struct RespawnRequestListener final : public gcn::ActionListener { void action(const gcn::ActionEvent &event) override; }; static RespawnRequestListener respawnListener; -class PlayerHandler : public MessageHandler, public Net::PlayerHandler +class PlayerHandler final : public MessageHandler, public Net::PlayerHandler { public: PlayerHandler(); -- cgit v1.2.3-70-g09d2