Browse Source

Merge pull request #15142 from Chocobo1/warning

Use proper signed number type
adaptive-webui-19844
Chocobo1 4 years ago committed by GitHub
parent
commit
eedd47860a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/app/application.h
  2. 2
      src/app/applicationinstancemanager.h
  3. 2
      src/app/filelogger.h
  4. 2
      src/app/stacktracedialog.h
  5. 2
      src/base/asyncfilestorage.h
  6. 2
      src/base/bittorrent/bandwidthscheduler.h
  7. 2
      src/base/bittorrent/bencoderesumedatastorage.cpp
  8. 2
      src/base/bittorrent/bencoderesumedatastorage.h
  9. 2
      src/base/bittorrent/dbresumedatastorage.cpp
  10. 2
      src/base/bittorrent/dbresumedatastorage.h
  11. 2
      src/base/bittorrent/filesearcher.h
  12. 2
      src/base/bittorrent/portforwarderimpl.h
  13. 2
      src/base/bittorrent/resumedatastorage.h
  14. 2
      src/base/bittorrent/session.h
  15. 2
      src/base/bittorrent/statistics.h
  16. 6
      src/base/bittorrent/torrentimpl.cpp
  17. 2
      src/base/bittorrent/torrentimpl.h
  18. 2
      src/base/bittorrent/tracker.h
  19. 2
      src/base/http/connection.h
  20. 2
      src/base/http/server.h
  21. 2
      src/base/iconprovider.h
  22. 2
      src/base/logger.h
  23. 2
      src/base/net/downloadhandlerimpl.h
  24. 4
      src/base/net/downloadmanager.h
  25. 2
      src/base/net/geoipmanager.h
  26. 2
      src/base/net/portforwarder.h
  27. 2
      src/base/net/proxyconfigurationmanager.h
  28. 2
      src/base/net/reverseresolution.h
  29. 2
      src/base/preferences.h
  30. 2
      src/base/rss/rss_article.h
  31. 2
      src/base/rss/rss_autodownloader.h
  32. 2
      src/base/rss/rss_feed.h
  33. 2
      src/base/rss/rss_folder.h
  34. 2
      src/base/rss/rss_item.h
  35. 2
      src/base/rss/rss_session.h
  36. 2
      src/base/search/searchdownloadhandler.h
  37. 2
      src/base/search/searchhandler.h
  38. 2
      src/base/search/searchpluginmanager.h
  39. 2
      src/base/torrentfileswatcher.cpp
  40. 2
      src/base/torrentfileswatcher.h
  41. 2
      src/gui/aboutdialog.h
  42. 2
      src/gui/addnewtorrentdialog.h
  43. 2
      src/gui/banlistoptionsdialog.h
  44. 2
      src/gui/categoryfilterwidget.h
  45. 2
      src/gui/downloadfromurldialog.h
  46. 2
      src/gui/fspathedit.cpp
  47. 2
      src/gui/fspathedit.h
  48. 2
      src/gui/fspathedit_p.h
  49. 2
      src/gui/ipsubnetwhitelistoptionsdialog.h
  50. 2
      src/gui/log/logfiltermodel.h
  51. 2
      src/gui/log/loglistview.h
  52. 6
      src/gui/log/logmodel.h
  53. 2
      src/gui/optionsdialog.h
  54. 2
      src/gui/previewlistdelegate.h
  55. 2
      src/gui/previewselectdialog.h
  56. 2
      src/gui/programupdater.h
  57. 2
      src/gui/properties/downloadedpiecesbar.h
  58. 2
      src/gui/properties/peerlistsortmodel.h
  59. 2
      src/gui/properties/pieceavailabilitybar.h
  60. 2
      src/gui/properties/piecesbar.h
  61. 2
      src/gui/properties/propertieswidget.h
  62. 2
      src/gui/properties/proplistdelegate.h
  63. 2
      src/gui/properties/proptabbar.h
  64. 2
      src/gui/properties/trackerlistwidget.h
  65. 2
      src/gui/rss/automatedrssdownloader.h
  66. 2
      src/gui/search/pluginselectdialog.h
  67. 2
      src/gui/search/pluginsourcedialog.h
  68. 2
      src/gui/search/searchjobwidget.h
  69. 2
      src/gui/search/searchwidget.h
  70. 2
      src/gui/speedlimitdialog.h
  71. 2
      src/gui/statsdialog.h
  72. 2
      src/gui/statusbar.h
  73. 2
      src/gui/torrentcategorydialog.h
  74. 2
      src/gui/torrentcontentmodel.h
  75. 2
      src/gui/torrentcontenttreeview.h
  76. 2
      src/gui/torrentoptionsdialog.h
  77. 2
      src/gui/trackerentriesdialog.h
  78. 2
      src/gui/transferlistdelegate.h
  79. 8
      src/gui/transferlistfilterswidget.h
  80. 2
      src/gui/transferlistmodel.h
  81. 2
      src/gui/transferlistsortmodel.h
  82. 2
      src/gui/tristatewidget.h
  83. 2
      src/gui/uithememanager.h
  84. 2
      src/gui/watchedfolderoptionsdialog.h
  85. 2
      src/gui/watchedfoldersmodel.h
  86. 2
      src/webui/api/apicontroller.h
  87. 2
      src/webui/api/appcontroller.h
  88. 2
      src/webui/api/authcontroller.h
  89. 2
      src/webui/api/freediskspacechecker.h
  90. 2
      src/webui/api/logcontroller.h
  91. 2
      src/webui/api/rsscontroller.h
  92. 2
      src/webui/api/searchcontroller.h
  93. 2
      src/webui/api/synccontroller.h
  94. 2
      src/webui/api/torrentscontroller.h
  95. 2
      src/webui/api/transfercontroller.h
  96. 2
      src/webui/webapplication.h
  97. 2
      src/webui/webui.h

2
src/app/application.h

@ -71,7 +71,7 @@ namespace RSS
class Application final : public BaseApplication class Application final : public BaseApplication
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Application) Q_DISABLE_COPY_MOVE(Application)
public: public:
Application(int &argc, char **argv); Application(int &argc, char **argv);

2
src/app/applicationinstancemanager.h

@ -35,7 +35,7 @@ class QtLocalPeer;
class ApplicationInstanceManager : public QObject class ApplicationInstanceManager : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(ApplicationInstanceManager) Q_DISABLE_COPY_MOVE(ApplicationInstanceManager)
public: public:
explicit ApplicationInstanceManager(const QString &appId, QObject *parent = nullptr); explicit ApplicationInstanceManager(const QString &appId, QObject *parent = nullptr);

2
src/app/filelogger.h

@ -40,7 +40,7 @@ namespace Log
class FileLogger : public QObject class FileLogger : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(FileLogger) Q_DISABLE_COPY_MOVE(FileLogger)
public: public:
enum FileLogAgeType enum FileLogAgeType

2
src/app/stacktracedialog.h

@ -39,7 +39,7 @@ namespace Ui
class StacktraceDialog : public QDialog class StacktraceDialog : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(StacktraceDialog) Q_DISABLE_COPY_MOVE(StacktraceDialog)
public: public:
explicit StacktraceDialog(QWidget *parent = nullptr); explicit StacktraceDialog(QWidget *parent = nullptr);

2
src/base/asyncfilestorage.h

@ -43,7 +43,7 @@ public:
class AsyncFileStorage : public QObject class AsyncFileStorage : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(AsyncFileStorage) Q_DISABLE_COPY_MOVE(AsyncFileStorage)
public: public:
explicit AsyncFileStorage(const QString &storageFolderPath, QObject *parent = nullptr); explicit AsyncFileStorage(const QString &storageFolderPath, QObject *parent = nullptr);

2
src/base/bittorrent/bandwidthscheduler.h

@ -35,7 +35,7 @@
class BandwidthScheduler : public QObject class BandwidthScheduler : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(BandwidthScheduler) Q_DISABLE_COPY_MOVE(BandwidthScheduler)
public: public:
explicit BandwidthScheduler(QObject *parent = nullptr); explicit BandwidthScheduler(QObject *parent = nullptr);

2
src/base/bittorrent/bencoderesumedatastorage.cpp

@ -57,7 +57,7 @@ namespace BitTorrent
{ {
class BencodeResumeDataStorage::Worker final : public QObject class BencodeResumeDataStorage::Worker final : public QObject
{ {
Q_DISABLE_COPY(Worker) Q_DISABLE_COPY_MOVE(Worker)
public: public:
explicit Worker(const QDir &resumeDataDir); explicit Worker(const QDir &resumeDataDir);

2
src/base/bittorrent/bencoderesumedatastorage.h

@ -43,7 +43,7 @@ namespace BitTorrent
class BencodeResumeDataStorage final : public ResumeDataStorage class BencodeResumeDataStorage final : public ResumeDataStorage
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(BencodeResumeDataStorage) Q_DISABLE_COPY_MOVE(BencodeResumeDataStorage)
public: public:
explicit BencodeResumeDataStorage(const QString &path, QObject *parent = nullptr); explicit BencodeResumeDataStorage(const QString &path, QObject *parent = nullptr);

2
src/base/bittorrent/dbresumedatastorage.cpp

@ -158,7 +158,7 @@ namespace BitTorrent
{ {
class DBResumeDataStorage::Worker final : public QObject class DBResumeDataStorage::Worker final : public QObject
{ {
Q_DISABLE_COPY(Worker) Q_DISABLE_COPY_MOVE(Worker)
public: public:
Worker(const QString &dbPath, const QString &dbConnectionName); Worker(const QString &dbPath, const QString &dbConnectionName);

2
src/base/bittorrent/dbresumedatastorage.h

@ -37,7 +37,7 @@ namespace BitTorrent
class DBResumeDataStorage final : public ResumeDataStorage class DBResumeDataStorage final : public ResumeDataStorage
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(DBResumeDataStorage) Q_DISABLE_COPY_MOVE(DBResumeDataStorage)
public: public:
explicit DBResumeDataStorage(const QString &dbPath, QObject *parent = nullptr); explicit DBResumeDataStorage(const QString &dbPath, QObject *parent = nullptr);

2
src/base/bittorrent/filesearcher.h

@ -38,7 +38,7 @@ namespace BitTorrent
class FileSearcher final : public QObject class FileSearcher final : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(FileSearcher) Q_DISABLE_COPY_MOVE(FileSearcher)
public: public:
FileSearcher() = default; FileSearcher() = default;

2
src/base/bittorrent/portforwarderimpl.h

@ -40,7 +40,7 @@
class PortForwarderImpl final : public Net::PortForwarder class PortForwarderImpl final : public Net::PortForwarder
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(PortForwarderImpl) Q_DISABLE_COPY_MOVE(PortForwarderImpl)
public: public:
explicit PortForwarderImpl(lt::session *provider, QObject *parent = nullptr); explicit PortForwarderImpl(lt::session *provider, QObject *parent = nullptr);

2
src/base/bittorrent/resumedatastorage.h

@ -41,7 +41,7 @@ namespace BitTorrent
class ResumeDataStorage : public QObject class ResumeDataStorage : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(ResumeDataStorage) Q_DISABLE_COPY_MOVE(ResumeDataStorage)
public: public:
using QObject::QObject; using QObject::QObject;

2
src/base/bittorrent/session.h

@ -211,7 +211,7 @@ namespace BitTorrent
class Session : public QObject class Session : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Session) Q_DISABLE_COPY_MOVE(Session)
public: public:
static void initInstance(); static void initInstance();

2
src/base/bittorrent/statistics.h

@ -39,7 +39,7 @@ namespace BitTorrent
class Statistics : public QObject class Statistics : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Statistics) Q_DISABLE_COPY_MOVE(Statistics)
public: public:
explicit Statistics(BitTorrent::Session *session); explicit Statistics(BitTorrent::Session *session);

6
src/base/bittorrent/torrentimpl.cpp

@ -112,7 +112,7 @@ namespace
QString firstTrackerMessage; QString firstTrackerMessage;
QString firstErrorMessage; QString firstErrorMessage;
#if (LIBTORRENT_VERSION_NUM >= 20000) #if (LIBTORRENT_VERSION_NUM >= 20000)
const size_t numEndpoints = nativeEntry.endpoints.size() * ((hashes.has_v1() && hashes.has_v2()) ? 2 : 1); const auto numEndpoints = static_cast<qsizetype>(nativeEntry.endpoints.size() * ((hashes.has_v1() && hashes.has_v2()) ? 2 : 1));
trackerEntry.endpoints.reserve(static_cast<decltype(trackerEntry.endpoints)::size_type>(numEndpoints)); trackerEntry.endpoints.reserve(static_cast<decltype(trackerEntry.endpoints)::size_type>(numEndpoints));
for (const lt::announce_endpoint &endpoint : nativeEntry.endpoints) for (const lt::announce_endpoint &endpoint : nativeEntry.endpoints)
{ {
@ -167,8 +167,8 @@ namespace
} }
} }
#else #else
const int numEndpoints = nativeEntry.endpoints.size(); const auto numEndpoints = static_cast<qsizetype>(nativeEntry.endpoints.size());
trackerEntry.endpoints.reserve(numEndpoints); trackerEntry.endpoints.reserve(static_cast<decltype(trackerEntry.endpoints)::size_type>(numEndpoints));
for (const lt::announce_endpoint &endpoint : nativeEntry.endpoints) for (const lt::announce_endpoint &endpoint : nativeEntry.endpoints)
{ {
TrackerEntry::EndpointStats trackerEndpoint; TrackerEntry::EndpointStats trackerEndpoint;

2
src/base/bittorrent/torrentimpl.h

@ -76,7 +76,7 @@ namespace BitTorrent
class TorrentImpl final : public QObject, public Torrent class TorrentImpl final : public QObject, public Torrent
{ {
Q_DISABLE_COPY(TorrentImpl) Q_DISABLE_COPY_MOVE(TorrentImpl)
Q_DECLARE_TR_FUNCTIONS(BitTorrent::TorrentImpl) Q_DECLARE_TR_FUNCTIONS(BitTorrent::TorrentImpl)
public: public:

2
src/base/bittorrent/tracker.h

@ -72,7 +72,7 @@ namespace BitTorrent
class Tracker final : public QObject, public Http::IRequestHandler, private Http::ResponseBuilder class Tracker final : public QObject, public Http::IRequestHandler, private Http::ResponseBuilder
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Tracker) Q_DISABLE_COPY_MOVE(Tracker)
struct TrackerAnnounceRequest; struct TrackerAnnounceRequest;

2
src/base/http/connection.h

@ -43,7 +43,7 @@ namespace Http
class Connection : public QObject class Connection : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Connection) Q_DISABLE_COPY_MOVE(Connection)
public: public:
Connection(QTcpSocket *socket, IRequestHandler *requestHandler, QObject *parent = nullptr); Connection(QTcpSocket *socket, IRequestHandler *requestHandler, QObject *parent = nullptr);

2
src/base/http/server.h

@ -43,7 +43,7 @@ namespace Http
class Server final : public QTcpServer class Server final : public QTcpServer
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Server) Q_DISABLE_COPY_MOVE(Server)
public: public:
explicit Server(IRequestHandler *requestHandler, QObject *parent = nullptr); explicit Server(IRequestHandler *requestHandler, QObject *parent = nullptr);

2
src/base/iconprovider.h

@ -35,7 +35,7 @@ class QString;
class IconProvider : public QObject class IconProvider : public QObject
{ {
Q_DISABLE_COPY(IconProvider) Q_DISABLE_COPY_MOVE(IconProvider)
public: public:
static void initInstance(); static void initInstance();

2
src/base/logger.h

@ -72,7 +72,7 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(Log::MsgTypes)
class Logger : public QObject class Logger : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Logger) Q_DISABLE_COPY_MOVE(Logger)
public: public:
static void initInstance(); static void initInstance();

2
src/base/net/downloadhandlerimpl.h

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

4
src/base/net/downloadmanager.h

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

2
src/base/net/geoipmanager.h

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

2
src/base/net/portforwarder.h

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

2
src/base/net/proxyconfigurationmanager.h

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

2
src/base/net/reverseresolution.h

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

2
src/base/preferences.h

@ -76,7 +76,7 @@ namespace DNS
class Preferences : public QObject class Preferences : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Preferences) Q_DISABLE_COPY_MOVE(Preferences)
Preferences(); Preferences();

2
src/base/rss/rss_article.h

@ -42,7 +42,7 @@ namespace RSS
class Article : public QObject class Article : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Article) Q_DISABLE_COPY_MOVE(Article)
friend class Feed; friend class Feed;

2
src/base/rss/rss_autodownloader.h

@ -62,7 +62,7 @@ namespace RSS
class AutoDownloader final : public QObject class AutoDownloader final : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(AutoDownloader) Q_DISABLE_COPY_MOVE(AutoDownloader)
friend class ::Application; friend class ::Application;

2
src/base/rss/rss_feed.h

@ -59,7 +59,7 @@ namespace RSS
class Feed final : public Item class Feed final : public Item
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Feed) Q_DISABLE_COPY_MOVE(Feed)
friend class Session; friend class Session;

2
src/base/rss/rss_folder.h

@ -40,7 +40,7 @@ namespace RSS
class Folder final : public Item class Folder final : public Item
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Folder) Q_DISABLE_COPY_MOVE(Folder)
friend class Session; friend class Session;

2
src/base/rss/rss_item.h

@ -42,7 +42,7 @@ namespace RSS
class Item : public QObject class Item : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Item) Q_DISABLE_COPY_MOVE(Item)
friend class Folder; friend class Folder;
friend class Session; friend class Session;

2
src/base/rss/rss_session.h

@ -87,7 +87,7 @@ namespace RSS
class Session : public QObject class Session : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Session) Q_DISABLE_COPY_MOVE(Session)
friend class ::Application; friend class ::Application;

2
src/base/search/searchdownloadhandler.h

@ -37,7 +37,7 @@ class SearchPluginManager;
class SearchDownloadHandler : public QObject class SearchDownloadHandler : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(SearchDownloadHandler) Q_DISABLE_COPY_MOVE(SearchDownloadHandler)
friend class SearchPluginManager; friend class SearchPluginManager;

2
src/base/search/searchhandler.h

@ -54,7 +54,7 @@ class SearchPluginManager;
class SearchHandler : public QObject class SearchHandler : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(SearchHandler) Q_DISABLE_COPY_MOVE(SearchHandler)
friend class SearchPluginManager; friend class SearchPluginManager;

2
src/base/search/searchpluginmanager.h

@ -60,7 +60,7 @@ class SearchHandler;
class SearchPluginManager : public QObject class SearchPluginManager : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(SearchPluginManager) Q_DISABLE_COPY_MOVE(SearchPluginManager)
public: public:
SearchPluginManager(); SearchPluginManager();

2
src/base/torrentfileswatcher.cpp

@ -192,7 +192,7 @@ namespace
class TorrentFilesWatcher::Worker final : public QObject class TorrentFilesWatcher::Worker final : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(Worker) Q_DISABLE_COPY_MOVE(Worker)
public: public:
Worker(); Worker();

2
src/base/torrentfileswatcher.h

@ -48,7 +48,7 @@ namespace BitTorrent
class TorrentFilesWatcher final : public QObject class TorrentFilesWatcher final : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(TorrentFilesWatcher) Q_DISABLE_COPY_MOVE(TorrentFilesWatcher)
public: public:
struct WatchedFolderOptions struct WatchedFolderOptions

2
src/gui/aboutdialog.h

@ -40,7 +40,7 @@ namespace Ui
class AboutDialog final : public QDialog class AboutDialog final : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(AboutDialog) Q_DISABLE_COPY_MOVE(AboutDialog)
public: public:
explicit AboutDialog(QWidget *parent); explicit AboutDialog(QWidget *parent);

2
src/gui/addnewtorrentdialog.h

@ -59,7 +59,7 @@ class TorrentFileGuard;
class AddNewTorrentDialog final : public QDialog class AddNewTorrentDialog final : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(AddNewTorrentDialog) Q_DISABLE_COPY_MOVE(AddNewTorrentDialog)
public: public:
static const int minPathHistoryLength = 0; static const int minPathHistoryLength = 0;

2
src/gui/banlistoptionsdialog.h

@ -43,7 +43,7 @@ namespace Ui
class BanListOptionsDialog final : public QDialog class BanListOptionsDialog final : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(BanListOptionsDialog) Q_DISABLE_COPY_MOVE(BanListOptionsDialog)
public: public:
explicit BanListOptionsDialog(QWidget *parent = nullptr); explicit BanListOptionsDialog(QWidget *parent = nullptr);

2
src/gui/categoryfilterwidget.h

@ -33,7 +33,7 @@
class CategoryFilterWidget final : public QTreeView class CategoryFilterWidget final : public QTreeView
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(CategoryFilterWidget) Q_DISABLE_COPY_MOVE(CategoryFilterWidget)
public: public:
explicit CategoryFilterWidget(QWidget *parent = nullptr); explicit CategoryFilterWidget(QWidget *parent = nullptr);

2
src/gui/downloadfromurldialog.h

@ -40,7 +40,7 @@ namespace Ui
class DownloadFromURLDialog final : public QDialog class DownloadFromURLDialog final : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(DownloadFromURLDialog) Q_DISABLE_COPY_MOVE(DownloadFromURLDialog)
public: public:
explicit DownloadFromURLDialog(QWidget *parent); explicit DownloadFromURLDialog(QWidget *parent);

2
src/gui/fspathedit.cpp

@ -68,7 +68,7 @@ namespace
class FileSystemPathEdit::FileSystemPathEditPrivate class FileSystemPathEdit::FileSystemPathEditPrivate
{ {
Q_DECLARE_PUBLIC(FileSystemPathEdit) Q_DECLARE_PUBLIC(FileSystemPathEdit)
Q_DISABLE_COPY(FileSystemPathEditPrivate) Q_DISABLE_COPY_MOVE(FileSystemPathEditPrivate)
FileSystemPathEditPrivate(FileSystemPathEdit *q, Private::FileEditorWithCompletion *editor); FileSystemPathEditPrivate(FileSystemPathEdit *q, Private::FileEditorWithCompletion *editor);

2
src/gui/fspathedit.h

@ -100,7 +100,7 @@ private:
virtual void setEditWidgetText(const QString &text) = 0; virtual void setEditWidgetText(const QString &text) = 0;
QWidget *editWidgetImpl() const; QWidget *editWidgetImpl() const;
Q_DISABLE_COPY(FileSystemPathEdit) Q_DISABLE_COPY_MOVE(FileSystemPathEdit)
class FileSystemPathEditPrivate; class FileSystemPathEditPrivate;
Q_DECLARE_PRIVATE(FileSystemPathEdit) Q_DECLARE_PRIVATE(FileSystemPathEdit)
FileSystemPathEditPrivate *d_ptr; FileSystemPathEditPrivate *d_ptr;

2
src/gui/fspathedit_p.h

@ -112,7 +112,7 @@ namespace Private
class FileLineEdit final : public QLineEdit, public FileEditorWithCompletion class FileLineEdit final : public QLineEdit, public FileEditorWithCompletion
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(FileLineEdit) Q_DISABLE_COPY_MOVE(FileLineEdit)
public: public:
FileLineEdit(QWidget *parent = nullptr); FileLineEdit(QWidget *parent = nullptr);

2
src/gui/ipsubnetwhitelistoptionsdialog.h

@ -43,7 +43,7 @@ namespace Ui
class IPSubnetWhitelistOptionsDialog final : public QDialog class IPSubnetWhitelistOptionsDialog final : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(IPSubnetWhitelistOptionsDialog) Q_DISABLE_COPY_MOVE(IPSubnetWhitelistOptionsDialog)
public: public:
explicit IPSubnetWhitelistOptionsDialog(QWidget *parent = nullptr); explicit IPSubnetWhitelistOptionsDialog(QWidget *parent = nullptr);

2
src/gui/log/logfiltermodel.h

@ -35,7 +35,7 @@
class LogFilterModel final : public QSortFilterProxyModel class LogFilterModel final : public QSortFilterProxyModel
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(LogFilterModel) Q_DISABLE_COPY_MOVE(LogFilterModel)
public: public:
explicit LogFilterModel(Log::MsgTypes types = Log::ALL, QObject *parent = nullptr); explicit LogFilterModel(Log::MsgTypes types = Log::ALL, QObject *parent = nullptr);

2
src/gui/log/loglistview.h

@ -34,7 +34,7 @@
class LogListView final : public QListView class LogListView final : public QListView
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(LogListView) Q_DISABLE_COPY_MOVE(LogListView)
public: public:
explicit LogListView(QWidget *parent = nullptr); explicit LogListView(QWidget *parent = nullptr);

6
src/gui/log/logmodel.h

@ -39,7 +39,7 @@
class BaseLogModel : public QAbstractListModel class BaseLogModel : public QAbstractListModel
{ {
Q_DISABLE_COPY(BaseLogModel) Q_DISABLE_COPY_MOVE(BaseLogModel)
public: public:
enum MessageTypeRole enum MessageTypeRole
@ -86,7 +86,7 @@ private:
class LogMessageModel : public BaseLogModel class LogMessageModel : public BaseLogModel
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(LogMessageModel) Q_DISABLE_COPY_MOVE(LogMessageModel)
public: public:
explicit LogMessageModel(QObject *parent = nullptr); explicit LogMessageModel(QObject *parent = nullptr);
@ -101,7 +101,7 @@ private:
class LogPeerModel : public BaseLogModel class LogPeerModel : public BaseLogModel
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(LogPeerModel) Q_DISABLE_COPY_MOVE(LogPeerModel)
public: public:
explicit LogPeerModel(QObject *parent = nullptr); explicit LogPeerModel(QObject *parent = nullptr);

2
src/gui/optionsdialog.h

@ -59,7 +59,7 @@ namespace Ui
class OptionsDialog final : public QDialog class OptionsDialog final : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(OptionsDialog) Q_DISABLE_COPY_MOVE(OptionsDialog)
using ThisType = OptionsDialog; using ThisType = OptionsDialog;

2
src/gui/previewlistdelegate.h

@ -35,7 +35,7 @@
class PreviewListDelegate final : public QItemDelegate class PreviewListDelegate final : public QItemDelegate
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(PreviewListDelegate) Q_DISABLE_COPY_MOVE(PreviewListDelegate)
public: public:
explicit PreviewListDelegate(QObject *parent = nullptr); explicit PreviewListDelegate(QObject *parent = nullptr);

2
src/gui/previewselectdialog.h

@ -47,7 +47,7 @@ class PreviewListDelegate;
class PreviewSelectDialog final : public QDialog class PreviewSelectDialog final : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(PreviewSelectDialog) Q_DISABLE_COPY_MOVE(PreviewSelectDialog)
public: public:
enum PreviewColumn enum PreviewColumn

2
src/gui/programupdater.h

@ -41,7 +41,7 @@ namespace Net
class ProgramUpdater final : public QObject class ProgramUpdater final : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(ProgramUpdater) Q_DISABLE_COPY_MOVE(ProgramUpdater)
public: public:
using QObject::QObject; using QObject::QObject;

2
src/gui/properties/downloadedpiecesbar.h

@ -39,7 +39,7 @@ class DownloadedPiecesBar final : public PiecesBar
{ {
using base = PiecesBar; using base = PiecesBar;
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(DownloadedPiecesBar) Q_DISABLE_COPY_MOVE(DownloadedPiecesBar)
public: public:
DownloadedPiecesBar(QWidget *parent); DownloadedPiecesBar(QWidget *parent);

2
src/gui/properties/peerlistsortmodel.h

@ -35,7 +35,7 @@
class PeerListSortModel final : public QSortFilterProxyModel class PeerListSortModel final : public QSortFilterProxyModel
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(PeerListSortModel) Q_DISABLE_COPY_MOVE(PeerListSortModel)
public: public:
enum enum

2
src/gui/properties/pieceavailabilitybar.h

@ -34,7 +34,7 @@ class PieceAvailabilityBar final : public PiecesBar
{ {
using base = PiecesBar; using base = PiecesBar;
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(PieceAvailabilityBar) Q_DISABLE_COPY_MOVE(PieceAvailabilityBar)
public: public:
PieceAvailabilityBar(QWidget *parent); PieceAvailabilityBar(QWidget *parent);

2
src/gui/properties/piecesbar.h

@ -44,7 +44,7 @@ class PiecesBar : public QWidget
{ {
using base = QWidget; using base = QWidget;
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(PiecesBar) Q_DISABLE_COPY_MOVE(PiecesBar)
public: public:
explicit PiecesBar(QWidget *parent = nullptr); explicit PiecesBar(QWidget *parent = nullptr);

2
src/gui/properties/propertieswidget.h

@ -56,7 +56,7 @@ namespace Ui
class PropertiesWidget : public QWidget class PropertiesWidget : public QWidget
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(PropertiesWidget) Q_DISABLE_COPY_MOVE(PropertiesWidget)
public: public:
enum SlideState enum SlideState

2
src/gui/properties/proplistdelegate.h

@ -52,7 +52,7 @@ enum PropColumn
class PropListDelegate final : public QStyledItemDelegate class PropListDelegate final : public QStyledItemDelegate
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(PropListDelegate) Q_DISABLE_COPY_MOVE(PropListDelegate)
public: public:
explicit PropListDelegate(PropertiesWidget *properties); explicit PropListDelegate(PropertiesWidget *properties);

2
src/gui/properties/proptabbar.h

@ -35,7 +35,7 @@ class QButtonGroup;
class PropTabBar : public QHBoxLayout class PropTabBar : public QHBoxLayout
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(PropTabBar) Q_DISABLE_COPY_MOVE(PropTabBar)
public: public:
enum PropertyTab enum PropertyTab

2
src/gui/properties/trackerlistwidget.h

@ -41,7 +41,7 @@ namespace BitTorrent
class TrackerListWidget : public QTreeWidget class TrackerListWidget : public QTreeWidget
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(TrackerListWidget) Q_DISABLE_COPY_MOVE(TrackerListWidget)
public: public:
enum TrackerListColumn enum TrackerListColumn

2
src/gui/rss/automatedrssdownloader.h

@ -52,7 +52,7 @@ namespace Ui
class AutomatedRssDownloader : public QDialog class AutomatedRssDownloader : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(AutomatedRssDownloader) Q_DISABLE_COPY_MOVE(AutomatedRssDownloader)
public: public:
explicit AutomatedRssDownloader(QWidget *parent = nullptr); explicit AutomatedRssDownloader(QWidget *parent = nullptr);

2
src/gui/search/pluginselectdialog.h

@ -51,7 +51,7 @@ namespace Ui
class PluginSelectDialog final : public QDialog class PluginSelectDialog final : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(PluginSelectDialog) Q_DISABLE_COPY_MOVE(PluginSelectDialog)
public: public:
explicit PluginSelectDialog(SearchPluginManager *pluginManager, QWidget *parent = nullptr); explicit PluginSelectDialog(SearchPluginManager *pluginManager, QWidget *parent = nullptr);

2
src/gui/search/pluginsourcedialog.h

@ -40,7 +40,7 @@ namespace Ui
class PluginSourceDialog final : public QDialog class PluginSourceDialog final : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(PluginSourceDialog) Q_DISABLE_COPY_MOVE(PluginSourceDialog)
public: public:
explicit PluginSourceDialog(QWidget *parent = nullptr); explicit PluginSourceDialog(QWidget *parent = nullptr);

2
src/gui/search/searchjobwidget.h

@ -53,7 +53,7 @@ namespace Ui
class SearchJobWidget final : public QWidget class SearchJobWidget final : public QWidget
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(SearchJobWidget) Q_DISABLE_COPY_MOVE(SearchJobWidget)
public: public:
enum class NameFilteringMode enum class NameFilteringMode

2
src/gui/search/searchwidget.h

@ -49,7 +49,7 @@ namespace Ui
class SearchWidget : public QWidget class SearchWidget : public QWidget
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(SearchWidget) Q_DISABLE_COPY_MOVE(SearchWidget)
public: public:
explicit SearchWidget(MainWindow *mainWindow); explicit SearchWidget(MainWindow *mainWindow);

2
src/gui/speedlimitdialog.h

@ -40,7 +40,7 @@ namespace Ui
class SpeedLimitDialog final : public QDialog class SpeedLimitDialog final : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(SpeedLimitDialog) Q_DISABLE_COPY_MOVE(SpeedLimitDialog)
public: public:
explicit SpeedLimitDialog(QWidget *parent); explicit SpeedLimitDialog(QWidget *parent);

2
src/gui/statsdialog.h

@ -40,7 +40,7 @@ namespace Ui
class StatsDialog final : public QDialog class StatsDialog final : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(StatsDialog) Q_DISABLE_COPY_MOVE(StatsDialog)
public: public:
explicit StatsDialog(QWidget *parent); explicit StatsDialog(QWidget *parent);

2
src/gui/statusbar.h

@ -41,7 +41,7 @@ namespace BitTorrent
class StatusBar : public QStatusBar class StatusBar : public QStatusBar
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(StatusBar) Q_DISABLE_COPY_MOVE(StatusBar)
public: public:
StatusBar(QWidget *parent = nullptr); StatusBar(QWidget *parent = nullptr);

2
src/gui/torrentcategorydialog.h

@ -38,7 +38,7 @@ namespace Ui
class TorrentCategoryDialog : public QDialog class TorrentCategoryDialog : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(TorrentCategoryDialog) Q_DISABLE_COPY_MOVE(TorrentCategoryDialog)
public: public:
static QString createCategory(QWidget *parent, const QString &parentCategoryName = {}); static QString createCategory(QWidget *parent, const QString &parentCategoryName = {});

2
src/gui/torrentcontentmodel.h

@ -47,7 +47,7 @@ namespace BitTorrent
class TorrentContentModel final : public QAbstractItemModel class TorrentContentModel final : public QAbstractItemModel
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(TorrentContentModel) Q_DISABLE_COPY_MOVE(TorrentContentModel)
public: public:
enum Roles enum Roles

2
src/gui/torrentcontenttreeview.h

@ -40,7 +40,7 @@ namespace BitTorrent
class TorrentContentTreeView final : public QTreeView class TorrentContentTreeView final : public QTreeView
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(TorrentContentTreeView) Q_DISABLE_COPY_MOVE(TorrentContentTreeView)
public: public:
explicit TorrentContentTreeView(QWidget *parent = nullptr); explicit TorrentContentTreeView(QWidget *parent = nullptr);

2
src/gui/torrentoptionsdialog.h

@ -48,7 +48,7 @@ namespace Ui
class TorrentOptionsDialog final : public QDialog class TorrentOptionsDialog final : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(TorrentOptionsDialog) Q_DISABLE_COPY_MOVE(TorrentOptionsDialog)
public: public:
explicit TorrentOptionsDialog(QWidget *parent, const QVector<BitTorrent::Torrent *> &torrents); explicit TorrentOptionsDialog(QWidget *parent, const QVector<BitTorrent::Torrent *> &torrents);

2
src/gui/trackerentriesdialog.h

@ -46,7 +46,7 @@ namespace Ui
class TrackerEntriesDialog : public QDialog class TrackerEntriesDialog : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(TrackerEntriesDialog) Q_DISABLE_COPY_MOVE(TrackerEntriesDialog)
public: public:
explicit TrackerEntriesDialog(QWidget *parent); explicit TrackerEntriesDialog(QWidget *parent);

2
src/gui/transferlistdelegate.h

@ -35,7 +35,7 @@
class TransferListDelegate final : public QStyledItemDelegate class TransferListDelegate final : public QStyledItemDelegate
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(TransferListDelegate) Q_DISABLE_COPY_MOVE(TransferListDelegate)
public: public:
explicit TransferListDelegate(QObject *parent); explicit TransferListDelegate(QObject *parent);

8
src/gui/transferlistfilterswidget.h

@ -52,7 +52,7 @@ namespace Net
class BaseFilterWidget : public QListWidget class BaseFilterWidget : public QListWidget
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(BaseFilterWidget) Q_DISABLE_COPY_MOVE(BaseFilterWidget)
public: public:
BaseFilterWidget(QWidget *parent, TransferListWidget *transferList); BaseFilterWidget(QWidget *parent, TransferListWidget *transferList);
@ -76,7 +76,7 @@ private slots:
class StatusFilterWidget final : public BaseFilterWidget class StatusFilterWidget final : public BaseFilterWidget
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(StatusFilterWidget) Q_DISABLE_COPY_MOVE(StatusFilterWidget)
public: public:
StatusFilterWidget(QWidget *parent, TransferListWidget *transferList); StatusFilterWidget(QWidget *parent, TransferListWidget *transferList);
@ -97,7 +97,7 @@ private:
class TrackerFiltersList final : public BaseFilterWidget class TrackerFiltersList final : public BaseFilterWidget
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(TrackerFiltersList) Q_DISABLE_COPY_MOVE(TrackerFiltersList)
public: public:
TrackerFiltersList(QWidget *parent, TransferListWidget *transferList, bool downloadFavicon); TrackerFiltersList(QWidget *parent, TransferListWidget *transferList, bool downloadFavicon);
@ -143,7 +143,7 @@ class TagFilterWidget;
class TransferListFiltersWidget final : public QFrame class TransferListFiltersWidget final : public QFrame
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(TransferListFiltersWidget) Q_DISABLE_COPY_MOVE(TransferListFiltersWidget)
public: public:
TransferListFiltersWidget(QWidget *parent, TransferListWidget *transferList, bool downloadFavicon); TransferListFiltersWidget(QWidget *parent, TransferListWidget *transferList, bool downloadFavicon);

2
src/gui/transferlistmodel.h

@ -44,7 +44,7 @@ namespace BitTorrent
class TransferListModel final : public QAbstractListModel class TransferListModel final : public QAbstractListModel
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(TransferListModel) Q_DISABLE_COPY_MOVE(TransferListModel)
public: public:
enum Column enum Column

2
src/gui/transferlistsortmodel.h

@ -42,7 +42,7 @@ namespace BitTorrent
class TransferListSortModel final : public QSortFilterProxyModel class TransferListSortModel final : public QSortFilterProxyModel
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(TransferListSortModel) Q_DISABLE_COPY_MOVE(TransferListSortModel)
public: public:
explicit TransferListSortModel(QObject *parent = nullptr); explicit TransferListSortModel(QObject *parent = nullptr);

2
src/gui/tristatewidget.h

@ -35,7 +35,7 @@ class QString;
class TriStateWidget final : public QWidget class TriStateWidget final : public QWidget
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(TriStateWidget) Q_DISABLE_COPY_MOVE(TriStateWidget)
public: public:
TriStateWidget(const QString &text, QWidget *parent); TriStateWidget(const QString &text, QWidget *parent);

2
src/gui/uithememanager.h

@ -38,7 +38,7 @@
class UIThemeManager : public QObject class UIThemeManager : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(UIThemeManager) Q_DISABLE_COPY_MOVE(UIThemeManager)
public: public:
static void initInstance(); static void initInstance();

2
src/gui/watchedfolderoptionsdialog.h

@ -41,7 +41,7 @@ namespace Ui
class WatchedFolderOptionsDialog final : public QDialog class WatchedFolderOptionsDialog final : public QDialog
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(WatchedFolderOptionsDialog) Q_DISABLE_COPY_MOVE(WatchedFolderOptionsDialog)
public: public:
explicit WatchedFolderOptionsDialog(const TorrentFilesWatcher::WatchedFolderOptions &watchedFolderOptions, QWidget *parent); explicit WatchedFolderOptionsDialog(const TorrentFilesWatcher::WatchedFolderOptions &watchedFolderOptions, QWidget *parent);

2
src/gui/watchedfoldersmodel.h

@ -39,7 +39,7 @@
class WatchedFoldersModel final : public QAbstractListModel class WatchedFoldersModel final : public QAbstractListModel
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(WatchedFoldersModel) Q_DISABLE_COPY_MOVE(WatchedFoldersModel)
public: public:
explicit WatchedFoldersModel(TorrentFilesWatcher *fsWatcher, QObject *parent = nullptr); explicit WatchedFoldersModel(TorrentFilesWatcher *fsWatcher, QObject *parent = nullptr);

2
src/webui/api/apicontroller.h

@ -42,7 +42,7 @@ using StringMap = QHash<QString, QString>;
class APIController : public QObject class APIController : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(APIController) Q_DISABLE_COPY_MOVE(APIController)
#ifndef Q_MOC_RUN #ifndef Q_MOC_RUN
#define WEBAPI_PUBLIC #define WEBAPI_PUBLIC

2
src/webui/api/appcontroller.h

@ -35,7 +35,7 @@
class AppController : public APIController class AppController : public APIController
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(AppController) Q_DISABLE_COPY_MOVE(AppController)
public: public:
using APIController::APIController; using APIController::APIController;

2
src/webui/api/authcontroller.h

@ -38,7 +38,7 @@ class QString;
class AuthController : public APIController class AuthController : public APIController
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(AuthController) Q_DISABLE_COPY_MOVE(AuthController)
public: public:
using APIController::APIController; using APIController::APIController;

2
src/webui/api/freediskspacechecker.h

@ -33,7 +33,7 @@
class FreeDiskSpaceChecker : public QObject class FreeDiskSpaceChecker : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(FreeDiskSpaceChecker) Q_DISABLE_COPY_MOVE(FreeDiskSpaceChecker)
public: public:
FreeDiskSpaceChecker() = default; FreeDiskSpaceChecker() = default;

2
src/webui/api/logcontroller.h

@ -33,7 +33,7 @@
class LogController final : public APIController class LogController final : public APIController
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(LogController) Q_DISABLE_COPY_MOVE(LogController)
public: public:
using APIController::APIController; using APIController::APIController;

2
src/webui/api/rsscontroller.h

@ -33,7 +33,7 @@
class RSSController final : public APIController class RSSController final : public APIController
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(RSSController) Q_DISABLE_COPY_MOVE(RSSController)
public: public:
using APIController::APIController; using APIController::APIController;

2
src/webui/api/searchcontroller.h

@ -42,7 +42,7 @@ struct SearchResult;
class SearchController : public APIController class SearchController : public APIController
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(SearchController) Q_DISABLE_COPY_MOVE(SearchController)
public: public:
using APIController::APIController; using APIController::APIController;

2
src/webui/api/synccontroller.h

@ -41,7 +41,7 @@ class FreeDiskSpaceChecker;
class SyncController : public APIController class SyncController : public APIController
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(SyncController) Q_DISABLE_COPY_MOVE(SyncController)
public: public:
using APIController::APIController; using APIController::APIController;

2
src/webui/api/torrentscontroller.h

@ -33,7 +33,7 @@
class TorrentsController : public APIController class TorrentsController : public APIController
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(TorrentsController) Q_DISABLE_COPY_MOVE(TorrentsController)
public: public:
using APIController::APIController; using APIController::APIController;

2
src/webui/api/transfercontroller.h

@ -33,7 +33,7 @@
class TransferController : public APIController class TransferController : public APIController
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(TransferController) Q_DISABLE_COPY_MOVE(TransferController)
public: public:
using APIController::APIController; using APIController::APIController;

2
src/webui/webapplication.h

@ -72,7 +72,7 @@ class WebApplication final
, private Http::ResponseBuilder , private Http::ResponseBuilder
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(WebApplication) Q_DISABLE_COPY_MOVE(WebApplication)
#ifndef Q_MOC_RUN #ifndef Q_MOC_RUN
#define WEBAPI_PUBLIC #define WEBAPI_PUBLIC

2
src/webui/webui.h

@ -46,7 +46,7 @@ class WebApplication;
class WebUI : public QObject class WebUI : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_DISABLE_COPY(WebUI) Q_DISABLE_COPY_MOVE(WebUI)
public: public:
WebUI(); WebUI();

Loading…
Cancel
Save