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

2
src/app/applicationinstancemanager.h

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

2
src/app/filelogger.h

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

2
src/app/stacktracedialog.h

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

2
src/base/asyncfilestorage.h

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

2
src/base/bittorrent/bandwidthscheduler.h

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

2
src/base/bittorrent/bencoderesumedatastorage.cpp

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

2
src/base/bittorrent/bencoderesumedatastorage.h

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

2
src/base/bittorrent/dbresumedatastorage.cpp

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

2
src/base/bittorrent/dbresumedatastorage.h

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

2
src/base/bittorrent/filesearcher.h

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

2
src/base/bittorrent/portforwarderimpl.h

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

2
src/base/bittorrent/resumedatastorage.h

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

2
src/base/bittorrent/session.h

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

2
src/base/bittorrent/statistics.h

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

6
src/base/bittorrent/torrentimpl.cpp

@ -112,7 +112,7 @@ namespace @@ -112,7 +112,7 @@ namespace
QString firstTrackerMessage;
QString firstErrorMessage;
#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));
for (const lt::announce_endpoint &endpoint : nativeEntry.endpoints)
{
@ -167,8 +167,8 @@ namespace @@ -167,8 +167,8 @@ namespace
}
}
#else
const int numEndpoints = nativeEntry.endpoints.size();
trackerEntry.endpoints.reserve(numEndpoints);
const auto numEndpoints = static_cast<qsizetype>(nativeEntry.endpoints.size());
trackerEntry.endpoints.reserve(static_cast<decltype(trackerEntry.endpoints)::size_type>(numEndpoints));
for (const lt::announce_endpoint &endpoint : nativeEntry.endpoints)
{
TrackerEntry::EndpointStats trackerEndpoint;

2
src/base/bittorrent/torrentimpl.h

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

2
src/base/bittorrent/tracker.h

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

2
src/base/http/connection.h

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

2
src/base/http/server.h

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

2
src/base/iconprovider.h

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

2
src/base/logger.h

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

2
src/base/net/downloadhandlerimpl.h

@ -39,7 +39,7 @@ class QUrl; @@ -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);

4
src/base/net/downloadmanager.h

@ -98,7 +98,7 @@ namespace Net @@ -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 @@ -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();

2
src/base/net/geoipmanager.h

@ -43,7 +43,7 @@ namespace Net @@ -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();

2
src/base/net/portforwarder.h

@ -34,7 +34,7 @@ namespace Net @@ -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);

2
src/base/net/proxyconfigurationmanager.h

@ -56,7 +56,7 @@ namespace Net @@ -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;

2
src/base/net/reverseresolution.h

@ -40,7 +40,7 @@ namespace Net @@ -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);

2
src/base/preferences.h

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

2
src/base/rss/rss_article.h

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

2
src/base/rss/rss_autodownloader.h

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

2
src/base/rss/rss_feed.h

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

2
src/base/rss/rss_folder.h

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

2
src/base/rss/rss_item.h

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

2
src/base/rss/rss_session.h

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

2
src/base/search/searchdownloadhandler.h

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

2
src/base/search/searchhandler.h

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

2
src/base/search/searchpluginmanager.h

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

2
src/base/torrentfileswatcher.cpp

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

2
src/base/torrentfileswatcher.h

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

2
src/gui/aboutdialog.h

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

2
src/gui/addnewtorrentdialog.h

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

2
src/gui/banlistoptionsdialog.h

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

2
src/gui/categoryfilterwidget.h

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

2
src/gui/downloadfromurldialog.h

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

2
src/gui/fspathedit.cpp

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

2
src/gui/fspathedit.h

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

2
src/gui/fspathedit_p.h

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

2
src/gui/ipsubnetwhitelistoptionsdialog.h

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

2
src/gui/log/logfiltermodel.h

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

2
src/gui/log/loglistview.h

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

6
src/gui/log/logmodel.h

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

2
src/gui/optionsdialog.h

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

2
src/gui/previewlistdelegate.h

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

2
src/gui/previewselectdialog.h

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

2
src/gui/programupdater.h

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

2
src/gui/properties/downloadedpiecesbar.h

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

2
src/gui/properties/peerlistsortmodel.h

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

2
src/gui/properties/pieceavailabilitybar.h

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

2
src/gui/properties/piecesbar.h

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

2
src/gui/properties/propertieswidget.h

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

2
src/gui/properties/proplistdelegate.h

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

2
src/gui/properties/proptabbar.h

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

2
src/gui/properties/trackerlistwidget.h

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

2
src/gui/rss/automatedrssdownloader.h

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

2
src/gui/search/pluginselectdialog.h

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

2
src/gui/search/pluginsourcedialog.h

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

2
src/gui/search/searchjobwidget.h

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

2
src/gui/search/searchwidget.h

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

2
src/gui/speedlimitdialog.h

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

2
src/gui/statsdialog.h

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

2
src/gui/statusbar.h

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

2
src/gui/torrentcategorydialog.h

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

2
src/gui/torrentcontentmodel.h

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

2
src/gui/torrentcontenttreeview.h

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

2
src/gui/torrentoptionsdialog.h

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

2
src/gui/trackerentriesdialog.h

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

2
src/gui/transferlistdelegate.h

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

8
src/gui/transferlistfilterswidget.h

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

2
src/gui/transferlistmodel.h

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

2
src/gui/transferlistsortmodel.h

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

2
src/gui/tristatewidget.h

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

2
src/gui/uithememanager.h

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

2
src/gui/watchedfolderoptionsdialog.h

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

2
src/gui/watchedfoldersmodel.h

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

2
src/webui/api/apicontroller.h

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

2
src/webui/api/appcontroller.h

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

2
src/webui/api/authcontroller.h

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

2
src/webui/api/freediskspacechecker.h

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

2
src/webui/api/logcontroller.h

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

2
src/webui/api/rsscontroller.h

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

2
src/webui/api/searchcontroller.h

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

2
src/webui/api/synccontroller.h

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

2
src/webui/api/torrentscontroller.h

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

2
src/webui/api/transfercontroller.h

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

2
src/webui/webapplication.h

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

2
src/webui/webui.h

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

Loading…
Cancel
Save