mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
refactor(Core): apply clang-tidy modernize-redundant-void-arg (#3825)
This commit is contained in:
@@ -11,11 +11,11 @@
|
||||
#include "RealmSocket.h"
|
||||
#include "Log.h"
|
||||
|
||||
RealmSocket::Session::Session(void) { }
|
||||
RealmSocket::Session::Session() { }
|
||||
|
||||
RealmSocket::Session::~Session(void) { }
|
||||
RealmSocket::Session::~Session() { }
|
||||
|
||||
RealmSocket::RealmSocket(void) :
|
||||
RealmSocket::RealmSocket() :
|
||||
input_buffer_(4096), session_(nullptr),
|
||||
_remoteAddress(), _remotePort(0)
|
||||
{
|
||||
@@ -25,7 +25,7 @@ RealmSocket::RealmSocket(void) :
|
||||
msg_queue()->low_water_mark(8 * 1024 * 1024);
|
||||
}
|
||||
|
||||
RealmSocket::~RealmSocket(void)
|
||||
RealmSocket::~RealmSocket()
|
||||
{
|
||||
if (msg_queue())
|
||||
msg_queue()->close();
|
||||
@@ -75,17 +75,17 @@ int RealmSocket::close(u_long)
|
||||
return 0;
|
||||
}
|
||||
|
||||
const std::string& RealmSocket::getRemoteAddress(void) const
|
||||
const std::string& RealmSocket::getRemoteAddress() const
|
||||
{
|
||||
return _remoteAddress;
|
||||
}
|
||||
|
||||
uint16 RealmSocket::getRemotePort(void) const
|
||||
uint16 RealmSocket::getRemotePort() const
|
||||
{
|
||||
return _remotePort;
|
||||
}
|
||||
|
||||
size_t RealmSocket::recv_len(void) const
|
||||
size_t RealmSocket::recv_len() const
|
||||
{
|
||||
return input_buffer_.length();
|
||||
}
|
||||
|
||||
@@ -22,27 +22,27 @@ public:
|
||||
class Session
|
||||
{
|
||||
public:
|
||||
Session(void);
|
||||
virtual ~Session(void);
|
||||
Session();
|
||||
virtual ~Session();
|
||||
|
||||
virtual void OnRead(void) = 0;
|
||||
virtual void OnAccept(void) = 0;
|
||||
virtual void OnClose(void) = 0;
|
||||
virtual void OnRead() = 0;
|
||||
virtual void OnAccept() = 0;
|
||||
virtual void OnClose() = 0;
|
||||
};
|
||||
|
||||
RealmSocket(void);
|
||||
~RealmSocket(void) override;
|
||||
RealmSocket();
|
||||
~RealmSocket() override;
|
||||
|
||||
[[nodiscard]] size_t recv_len(void) const;
|
||||
[[nodiscard]] size_t recv_len() const;
|
||||
bool recv_soft(char* buf, size_t len);
|
||||
bool recv(char* buf, size_t len);
|
||||
void recv_skip(size_t len);
|
||||
|
||||
bool send(const char* buf, size_t len);
|
||||
|
||||
[[nodiscard]] const std::string& getRemoteAddress(void) const;
|
||||
[[nodiscard]] const std::string& getRemoteAddress() const;
|
||||
|
||||
[[nodiscard]] uint16 getRemotePort(void) const;
|
||||
[[nodiscard]] uint16 getRemotePort() const;
|
||||
|
||||
int open(void*) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user