Skip to content

Commit

Permalink
Disable move constructor where it is sensible
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobo1 committed Jun 29, 2021
1 parent fd9941e commit 70d1cb8
Show file tree
Hide file tree
Showing 96 changed files with 102 additions and 102 deletions.
2 changes: 1 addition & 1 deletion src/app/application.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/app/applicationinstancemanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/app/filelogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace Log
class FileLogger : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(FileLogger)
Q_DISABLE_COPY_MOVE(FileLogger)

public:
enum FileLogAgeType
Expand Down
2 changes: 1 addition & 1 deletion src/app/stacktracedialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/base/asyncfilestorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class AsyncFileStorageError : public RuntimeError
class AsyncFileStorage : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(AsyncFileStorage)
Q_DISABLE_COPY_MOVE(AsyncFileStorage)

public:
explicit AsyncFileStorage(const QString &storageFolderPath, QObject *parent = nullptr);
Expand Down
2 changes: 1 addition & 1 deletion src/base/bittorrent/bandwidthscheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/base/bittorrent/bencoderesumedatastorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/base/bittorrent/bencoderesumedatastorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/base/bittorrent/dbresumedatastorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/base/bittorrent/dbresumedatastorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/base/bittorrent/filesearcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/base/bittorrent/portforwarderimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/base/bittorrent/resumedatastorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/base/bittorrent/session.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/base/bittorrent/statistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/base/bittorrent/torrentimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,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:
Expand Down
2 changes: 1 addition & 1 deletion src/base/bittorrent/tracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/base/http/connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/base/http/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/base/iconprovider.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class QString;

class IconProvider : public QObject
{
Q_DISABLE_COPY(IconProvider)
Q_DISABLE_COPY_MOVE(IconProvider)

public:
static void initInstance();
Expand Down
2 changes: 1 addition & 1 deletion src/base/logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/base/net/downloadhandlerimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/base/net/downloadmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/base/net/geoipmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/base/net/portforwarder.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/base/net/proxyconfigurationmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/base/net/reverseresolution.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/base/preferences.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ namespace DNS
class Preferences : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(Preferences)
Q_DISABLE_COPY_MOVE(Preferences)

Preferences();

Expand Down
2 changes: 1 addition & 1 deletion src/base/rss/rss_article.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace RSS
class Article : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(Article)
Q_DISABLE_COPY_MOVE(Article)

friend class Feed;

Expand Down
2 changes: 1 addition & 1 deletion src/base/rss/rss_autodownloader.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/base/rss/rss_feed.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/base/rss/rss_folder.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/base/rss/rss_item.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/base/rss/rss_session.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ namespace RSS
class Session : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(Session)
Q_DISABLE_COPY_MOVE(Session)

friend class ::Application;

Expand Down
2 changes: 1 addition & 1 deletion src/base/search/searchdownloadhandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class SearchPluginManager;
class SearchDownloadHandler : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(SearchDownloadHandler)
Q_DISABLE_COPY_MOVE(SearchDownloadHandler)

friend class SearchPluginManager;

Expand Down
2 changes: 1 addition & 1 deletion src/base/search/searchhandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class SearchPluginManager;
class SearchHandler : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(SearchHandler)
Q_DISABLE_COPY_MOVE(SearchHandler)

friend class SearchPluginManager;

Expand Down
2 changes: 1 addition & 1 deletion src/base/search/searchpluginmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class SearchHandler;
class SearchPluginManager : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(SearchPluginManager)
Q_DISABLE_COPY_MOVE(SearchPluginManager)

public:
SearchPluginManager();
Expand Down
2 changes: 1 addition & 1 deletion src/base/torrentfileswatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ namespace
class TorrentFilesWatcher::Worker final : public QObject
{
Q_OBJECT
Q_DISABLE_COPY(Worker)
Q_DISABLE_COPY_MOVE(Worker)

public:
Worker();
Expand Down
2 changes: 1 addition & 1 deletion src/base/torrentfileswatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/gui/aboutdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/gui/addnewtorrentdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/gui/banlistoptionsdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/gui/categoryfilterwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading

0 comments on commit 70d1cb8

Please sign in to comment.