Mod: modernize C++: use equals default

This commit is contained in:
wmayer
2023-08-21 19:34:33 +02:00
committed by wwmayer
parent 09a965d595
commit 142b86fde2
13 changed files with 15 additions and 55 deletions

View File

@@ -51,13 +51,9 @@ void Firewall::setInstance(Firewall* inst)
}
}
Firewall::Firewall()
{
}
Firewall::Firewall() = default;
Firewall::~Firewall()
{
}
Firewall::~Firewall() = default;
bool Firewall::filter(const QByteArray&) const
{
@@ -69,9 +65,7 @@ FirewallPython::FirewallPython(const Py::Object& o)
{
}
FirewallPython::~FirewallPython()
{
}
FirewallPython::~FirewallPython() = default;
bool FirewallPython::filter(const QByteArray& msg) const
{
@@ -96,9 +90,7 @@ ServerEvent::ServerEvent(QTcpSocket* sock, const QByteArray& msg)
{
}
ServerEvent::~ServerEvent()
{
}
ServerEvent::~ServerEvent() = default;
QTcpSocket* ServerEvent::socket() const
{