Apply modernize-use-default-member-init

This commit is contained in:
Alexey Rybalchenko
2021-05-26 13:53:48 +02:00
committed by Dennis Klein
parent e1b229522c
commit acf63d3c1b
33 changed files with 120 additions and 257 deletions

View File

@@ -20,15 +20,8 @@ namespace bpo = boost::program_options;
class Sender : public FairMQDevice
{
public:
Sender()
: fNumReceivers(0)
, fIndex(0)
, fSubtimeframeSize(10000)
{}
Sender() {}
~Sender() = default;
protected:
void InitTask() override
{
fIndex = GetConfig()->GetProperty<int>("sender-index");
@@ -64,9 +57,9 @@ class Sender : public FairMQDevice
}
private:
int fNumReceivers;
unsigned int fIndex;
int fSubtimeframeSize;
int fNumReceivers = 0;
unsigned int fIndex = 0;
int fSubtimeframeSize = 10000;
};
void addCustomOptions(bpo::options_description& options)