refactor(Core): apply clang-tidy modernize-* (#9975)

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
Francesco Borzì
2022-01-17 14:35:07 +01:00
committed by GitHub
parent fe4899202d
commit 9dc88def35
71 changed files with 533 additions and 534 deletions

View File

@@ -27,7 +27,7 @@ class WorldPacket : public ByteBuffer
{
public:
// just container for later use
WorldPacket() : ByteBuffer(0), m_opcode(NULL_OPCODE) { }
WorldPacket() : ByteBuffer(0) { }
explicit WorldPacket(uint16 opcode, size_t res = 200) :
ByteBuffer(res), m_opcode(opcode) { }
@@ -79,7 +79,7 @@ public:
[[nodiscard]] TimePoint GetReceivedTime() const { return m_receivedTime; }
protected:
uint16 m_opcode;
uint16 m_opcode{NULL_OPCODE};
TimePoint m_receivedTime; // only set for a specific set of opcodes, for performance reasons.
};