mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-07-12 02:01:36 +00:00
refactor: use default member initializers
- move constant constructor initializers into in-class default member initializers - clang-tidy modernize-use-default-member-init https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-default-member-init.html
This commit is contained in:
committed by
Dennis Klein
parent
4dfe24d411
commit
35d713ebaa
@@ -41,8 +41,7 @@ class Socket final : public fair::mq::Socket
|
||||
, fBytesRx(0)
|
||||
, fMessagesTx(0)
|
||||
, fMessagesRx(0)
|
||||
, fTimeout(100)
|
||||
, fConnectedPeersCount(0)
|
||||
|
||||
{
|
||||
if (fSocket == nullptr) {
|
||||
LOG(error) << "Failed creating socket " << fId << ", reason: " << zmq_strerror(errno);
|
||||
@@ -405,8 +404,8 @@ class Socket final : public fair::mq::Socket
|
||||
std::atomic<unsigned long> fMessagesTx;
|
||||
std::atomic<unsigned long> fMessagesRx;
|
||||
|
||||
int fTimeout;
|
||||
mutable unsigned long fConnectedPeersCount;
|
||||
int fTimeout{100};
|
||||
mutable unsigned long fConnectedPeersCount{0};
|
||||
};
|
||||
|
||||
} // namespace fair::mq::zmq
|
||||
|
||||
Reference in New Issue
Block a user