mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-09 00:52:30 -06:00
Use default constructor, destructor
This commit is contained in:
@@ -50,10 +50,6 @@ PowerManagement::PowerManagement(QObject *parent)
|
||||
#endif
|
||||
}
|
||||
|
||||
PowerManagement::~PowerManagement()
|
||||
{
|
||||
}
|
||||
|
||||
void PowerManagement::setActivityState(const bool busy)
|
||||
{
|
||||
if (busy)
|
||||
|
||||
@@ -47,7 +47,7 @@ class PowerManagement : public QObject
|
||||
|
||||
public:
|
||||
PowerManagement(QObject *parent = nullptr);
|
||||
virtual ~PowerManagement();
|
||||
virtual ~PowerManagement() = default;
|
||||
|
||||
void setActivityState(bool busy);
|
||||
|
||||
|
||||
@@ -51,10 +51,6 @@ PowerManagementInhibitor::PowerManagementInhibitor(QObject *parent)
|
||||
m_useGSM = false;
|
||||
}
|
||||
|
||||
PowerManagementInhibitor::~PowerManagementInhibitor()
|
||||
{
|
||||
}
|
||||
|
||||
void PowerManagementInhibitor::requestIdle()
|
||||
{
|
||||
m_intendedState = Idle;
|
||||
|
||||
@@ -39,7 +39,7 @@ class PowerManagementInhibitor : public QObject
|
||||
|
||||
public:
|
||||
PowerManagementInhibitor(QObject *parent = nullptr);
|
||||
virtual ~PowerManagementInhibitor();
|
||||
virtual ~PowerManagementInhibitor() = default;
|
||||
|
||||
void requestIdle();
|
||||
void requestBusy();
|
||||
|
||||
@@ -54,10 +54,6 @@ HtmlBrowser::HtmlBrowser(QWidget *parent)
|
||||
connect(m_netManager, &QNetworkAccessManager::finished, this, &HtmlBrowser::resourceLoaded);
|
||||
}
|
||||
|
||||
HtmlBrowser::~HtmlBrowser()
|
||||
{
|
||||
}
|
||||
|
||||
QVariant HtmlBrowser::loadResource(int type, const QUrl &name)
|
||||
{
|
||||
if (type == QTextDocument::ImageResource)
|
||||
|
||||
@@ -42,7 +42,7 @@ class HtmlBrowser final : public QTextBrowser
|
||||
|
||||
public:
|
||||
explicit HtmlBrowser(QWidget* parent = nullptr);
|
||||
~HtmlBrowser();
|
||||
~HtmlBrowser() = default;
|
||||
|
||||
QVariant loadResource(int type, const QUrl &name) override;
|
||||
|
||||
|
||||
@@ -38,9 +38,7 @@
|
||||
class CategoryModelItem
|
||||
{
|
||||
public:
|
||||
CategoryModelItem()
|
||||
{
|
||||
}
|
||||
CategoryModelItem() = default;
|
||||
|
||||
CategoryModelItem(CategoryModelItem *parent, QString categoryName, int torrentsCount = 0)
|
||||
: m_parent(nullptr)
|
||||
|
||||
Reference in New Issue
Block a user