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/localplayer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/localplayer.h') diff --git a/src/localplayer.h b/src/localplayer.h index de588402..43a1fe6d 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -58,7 +58,7 @@ enum /** * The local player character. */ -class LocalPlayer : public Being +class LocalPlayer final : public Being { public: LocalPlayer(int id= 65535, int subtype = 0); -- cgit v1.2.3-70-g09d2