Codechange: explicitly initialise network pool item related member variables
This commit is contained in:
@@ -30,7 +30,7 @@ enum SendPacketsState : uint8_t {
|
||||
/** Base socket handler for all TCP sockets */
|
||||
class NetworkTCPSocketHandler : public NetworkSocketHandler {
|
||||
private:
|
||||
std::deque<std::unique_ptr<Packet>> packet_queue; ///< Packets that are awaiting delivery. Cannot be std::queue as that does not have a clear() function.
|
||||
std::deque<std::unique_ptr<Packet>> packet_queue{}; ///< Packets that are awaiting delivery. Cannot be std::queue as that does not have a clear() function.
|
||||
std::unique_ptr<Packet> packet_recv = nullptr; ///< Partially received packet
|
||||
|
||||
void EmptyPacketQueue();
|
||||
|
||||
@@ -116,8 +116,8 @@ enum AdminCompanyRemoveReason : uint8_t {
|
||||
/** Main socket handler for admin related connections. */
|
||||
class NetworkAdminSocketHandler : public NetworkTCPSocketHandler {
|
||||
protected:
|
||||
std::string admin_name; ///< Name of the admin.
|
||||
std::string admin_version; ///< Version string of the admin.
|
||||
std::string admin_name{}; ///< Name of the admin.
|
||||
std::string admin_version{}; ///< Version string of the admin.
|
||||
AdminStatus status = ADMIN_STATUS_INACTIVE; ///< Status of this admin.
|
||||
|
||||
NetworkRecvStatus ReceiveInvalidPacket(PacketAdminType type);
|
||||
|
||||
Reference in New Issue
Block a user