Disable move constructor where it is sensible

This commit is contained in:
Chocobo1
2021-06-29 14:45:23 +08:00
parent fd9941e2d8
commit 70d1cb86fd
96 changed files with 102 additions and 102 deletions

View File

@@ -39,7 +39,7 @@ class QUrl;
class DownloadHandlerImpl final : public Net::DownloadHandler
{
Q_OBJECT
Q_DISABLE_COPY(DownloadHandlerImpl)
Q_DISABLE_COPY_MOVE(DownloadHandlerImpl)
public:
DownloadHandlerImpl(Net::DownloadManager *manager, const Net::DownloadRequest &downloadRequest);

View File

@@ -98,7 +98,7 @@ namespace Net
class DownloadHandler : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(DownloadHandler)
Q_DISABLE_COPY_MOVE(DownloadHandler)
public:
using QObject::QObject;
@@ -112,7 +112,7 @@ namespace Net
class DownloadManager : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(DownloadManager)
Q_DISABLE_COPY_MOVE(DownloadManager)
public:
static void initInstance();

View File

@@ -43,7 +43,7 @@ namespace Net
class GeoIPManager : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(GeoIPManager)
Q_DISABLE_COPY_MOVE(GeoIPManager)
public:
static void initInstance();

View File

@@ -34,7 +34,7 @@ namespace Net
{
class PortForwarder : public QObject
{
Q_DISABLE_COPY(PortForwarder)
Q_DISABLE_COPY_MOVE(PortForwarder)
public:
explicit PortForwarder(QObject *parent = nullptr);

View File

@@ -56,7 +56,7 @@ namespace Net
class ProxyConfigurationManager : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(ProxyConfigurationManager)
Q_DISABLE_COPY_MOVE(ProxyConfigurationManager)
explicit ProxyConfigurationManager(QObject *parent = nullptr);
~ProxyConfigurationManager() = default;

View File

@@ -40,7 +40,7 @@ namespace Net
class ReverseResolution : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(ReverseResolution)
Q_DISABLE_COPY_MOVE(ReverseResolution)
public:
explicit ReverseResolution(QObject *parent = nullptr);