refactor(Core): apply clang-tidy modernize-use-default-member-init (#3827)

This commit is contained in:
Francesco Borzì
2020-12-07 20:34:06 +01:00
committed by GitHub
parent 1cf39b3d22
commit c5a35efd7b
47 changed files with 352 additions and 366 deletions

View File

@@ -17,8 +17,8 @@ RealmSocket::Session::Session() = default;
RealmSocket::Session::~Session() = default;
RealmSocket::RealmSocket() :
input_buffer_(4096), session_(nullptr),
_remoteAddress(), _remotePort(0)
input_buffer_(4096),
_remoteAddress()
{
reference_counting_policy().value(ACE_Event_Handler::Reference_Counting_Policy::ENABLED);

View File

@@ -59,9 +59,9 @@ private:
ssize_t noblk_send(ACE_Message_Block& message_block);
ACE_Message_Block input_buffer_;
Session* session_;
Session* session_{nullptr};
std::string _remoteAddress;
uint16 _remotePort;
uint16 _remotePort{0};
};
#endif /* __REALMSOCKET_H__ */