mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Replace empty destructor bodies with =default definitions
This commit is contained in:
parent
1991b87a07
commit
90d0bc64fa
66 changed files with 45 additions and 124 deletions
|
@ -20,8 +20,6 @@ Formatter::Formatter(threading::MsgThread* t)
|
|||
thread = t;
|
||||
}
|
||||
|
||||
Formatter::~Formatter() { }
|
||||
|
||||
std::string Formatter::Render(const threading::Value::addr_t& addr)
|
||||
{
|
||||
if ( addr.family == IPv4 )
|
||||
|
|
|
@ -33,7 +33,7 @@ public:
|
|||
/**
|
||||
* Destructor.
|
||||
*/
|
||||
virtual ~Formatter();
|
||||
virtual ~Formatter() = default;
|
||||
|
||||
/**
|
||||
* Convert a list of threading values into an implementation specific
|
||||
|
|
|
@ -53,8 +53,6 @@ Ascii::Ascii(MsgThread* t, const SeparatorInfo& info) : Formatter(t)
|
|||
separators = info;
|
||||
}
|
||||
|
||||
Ascii::~Ascii() { }
|
||||
|
||||
bool Ascii::Describe(ODesc* desc, int num_fields, const Field* const* fields, Value** vals) const
|
||||
{
|
||||
for ( int i = 0; i < num_fields; i++ )
|
||||
|
|
|
@ -47,7 +47,7 @@ public:
|
|||
* separators.
|
||||
*/
|
||||
Ascii(MsgThread* t, const SeparatorInfo& info);
|
||||
~Ascii() override;
|
||||
~Ascii() override = default;
|
||||
|
||||
virtual bool Describe(ODesc* desc, Value* val, const std::string& name = "") const override;
|
||||
virtual bool Describe(ODesc* desc, int num_fields, const Field* const* fields,
|
||||
|
|
|
@ -37,8 +37,6 @@ JSON::JSON(MsgThread* t, TimeFormat tf, bool arg_include_unset_fields)
|
|||
{
|
||||
}
|
||||
|
||||
JSON::~JSON() { }
|
||||
|
||||
bool JSON::Describe(ODesc* desc, int num_fields, const Field* const* fields, Value** vals) const
|
||||
{
|
||||
rapidjson::StringBuffer buffer;
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
};
|
||||
|
||||
JSON(MsgThread* t, TimeFormat tf, bool include_unset_fields = false);
|
||||
~JSON() override;
|
||||
~JSON() override = default;
|
||||
|
||||
bool Describe(ODesc* desc, Value* val, const std::string& name = "") const override;
|
||||
bool Describe(ODesc* desc, int num_fields, const Field* const* fields,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue