mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 19:05:42 +00:00
refactor(Core): apply clang-tidy modernize-use-equals-default (#3834)
This commit is contained in:
@@ -120,7 +120,7 @@ class PacketFilter
|
||||
{
|
||||
public:
|
||||
explicit PacketFilter(WorldSession* pSession) : m_pSession(pSession) {}
|
||||
virtual ~PacketFilter() {}
|
||||
virtual ~PacketFilter() = default;
|
||||
|
||||
virtual bool Process(WorldPacket* /*packet*/) { return true; }
|
||||
[[nodiscard]] virtual bool ProcessLogout() const { return true; }
|
||||
@@ -133,7 +133,7 @@ class MapSessionFilter : public PacketFilter
|
||||
{
|
||||
public:
|
||||
explicit MapSessionFilter(WorldSession* pSession) : PacketFilter(pSession) {}
|
||||
~MapSessionFilter() override {}
|
||||
~MapSessionFilter() override = default;
|
||||
|
||||
bool Process(WorldPacket* packet) override;
|
||||
//in Map::Update() we do not process player logout!
|
||||
@@ -146,7 +146,7 @@ class WorldSessionFilter : public PacketFilter
|
||||
{
|
||||
public:
|
||||
explicit WorldSessionFilter(WorldSession* pSession) : PacketFilter(pSession) {}
|
||||
~WorldSessionFilter() override {}
|
||||
~WorldSessionFilter() override = default;
|
||||
|
||||
bool Process(WorldPacket* packet) override;
|
||||
};
|
||||
@@ -181,7 +181,7 @@ protected:
|
||||
uint8 CharCount;
|
||||
|
||||
private:
|
||||
virtual ~CharacterCreateInfo() {};
|
||||
virtual ~CharacterCreateInfo() = default;;
|
||||
};
|
||||
|
||||
struct PacketCounter
|
||||
|
||||
Reference in New Issue
Block a user