mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 14:12:30 -06:00
Disable copy, move constructors when inheriting from QObject
This commit is contained in:
@@ -43,6 +43,7 @@ class PowerManagementInhibitor;
|
||||
class PowerManagement : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY_MOVE(PowerManagement)
|
||||
|
||||
public:
|
||||
PowerManagement(QObject *parent = nullptr);
|
||||
|
||||
@@ -35,6 +35,7 @@ class QDBusPendingCallWatcher;
|
||||
class PowerManagementInhibitor : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY_MOVE(PowerManagementInhibitor)
|
||||
|
||||
public:
|
||||
PowerManagementInhibitor(QObject *parent = nullptr);
|
||||
|
||||
Reference in New Issue
Block a user