From 6152b8340554b684864db935952c38e4b57ea8be Mon Sep 17 00:00:00 2001 From: FranciscoPombal Date: Thu, 10 Dec 2020 17:56:37 +0000 Subject: [PATCH] Use #pragma once instead of include guards --- src/app/cmdoptions.h | 5 +---- src/app/filelogger.h | 5 +---- src/app/qtlocalpeer/qtlocalpeer.h | 5 +---- src/app/qtlocalpeer/qtlockedfile.h | 5 +---- src/app/stacktrace_win.h | 5 +---- src/app/stacktracedialog.h | 5 +---- src/base/bittorrent/bandwidthscheduler.h | 5 +---- src/base/bittorrent/cachestatus.h | 5 +---- src/base/bittorrent/filterparserthread.h | 5 +---- src/base/bittorrent/magneturi.h | 5 +---- src/base/bittorrent/peerinfo.h | 5 +---- src/base/bittorrent/session.h | 5 +---- src/base/bittorrent/sessionstatus.h | 5 +---- src/base/bittorrent/speedmonitor.h | 5 +---- src/base/bittorrent/statistics.h | 5 +---- src/base/bittorrent/torrentcreatorthread.h | 5 +---- src/base/bittorrent/torrentinfo.h | 5 +---- src/base/bittorrent/tracker.h | 5 +---- src/base/bittorrent/trackerentry.h | 5 +---- src/base/filesystemwatcher.h | 5 +---- src/base/http/connection.h | 5 +---- src/base/http/irequesthandler.h | 5 +---- src/base/http/requestparser.h | 5 +---- src/base/http/responsebuilder.h | 5 +---- src/base/http/responsegenerator.h | 5 +---- src/base/http/server.h | 5 +---- src/base/http/types.h | 5 +---- src/base/iconprovider.h | 5 +---- src/base/indexrange.h | 5 +---- src/base/logger.h | 5 +---- src/base/net/dnsupdater.h | 5 +---- src/base/net/downloadmanager.h | 5 +---- src/base/net/geoipdatabase.h | 5 +---- src/base/net/geoipmanager.h | 5 +---- src/base/net/portforwarder.h | 5 +---- src/base/net/proxyconfigurationmanager.h | 5 +---- src/base/net/reverseresolution.h | 5 +---- src/base/net/smtp.h | 5 +---- src/base/preferences.h | 5 +---- src/base/profile.h | 5 +---- src/base/profile_p.h | 5 +---- src/base/scanfoldersmodel.h | 5 +---- src/base/settingsstorage.h | 5 +---- src/base/settingvalue.h | 5 +---- src/base/torrentfilter.h | 5 +---- src/base/tristatebool.h | 5 +---- src/base/types.h | 5 +---- src/base/utils/fs.h | 5 +---- src/base/utils/gzip.h | 5 +---- src/base/utils/misc.h | 5 +---- src/base/utils/net.h | 5 +---- src/base/utils/random.h | 5 +---- src/base/utils/string.h | 5 +---- src/base/utils/version.h | 5 +---- src/gui/aboutdialog.h | 5 +---- src/gui/addnewtorrentdialog.h | 5 +---- src/gui/advancedsettings.h | 5 +---- src/gui/autoexpandabledialog.h | 5 +---- src/gui/banlistoptionsdialog.h | 5 +---- src/gui/categoryfiltermodel.h | 5 +---- src/gui/categoryfilterproxymodel.h | 5 +---- src/gui/cookiesdialog.h | 5 +---- src/gui/cookiesmodel.h | 5 +---- src/gui/deletionconfirmationdialog.h | 5 +---- src/gui/downloadfromurldialog.h | 5 +---- src/gui/executionlogwidget.h | 5 +---- src/gui/fspathedit.h | 5 +---- src/gui/fspathedit_p.h | 5 +---- src/gui/hidabletabwidget.h | 5 +---- src/gui/ipsubnetwhitelistoptionsdialog.h | 5 +---- src/gui/lineedit.h | 5 +---- src/gui/macutilities.h | 5 +---- src/gui/mainwindow.h | 5 +---- src/gui/optionsdialog.h | 5 +---- src/gui/powermanagement/powermanagement.h | 5 +---- src/gui/powermanagement/powermanagement_x11.h | 5 +---- src/gui/previewlistdelegate.h | 5 +---- src/gui/previewselectdialog.h | 5 +---- src/gui/programupdater.h | 5 +---- src/gui/properties/downloadedpiecesbar.h | 5 +---- src/gui/properties/peerlistsortmodel.h | 5 +---- src/gui/properties/peerlistwidget.h | 5 +---- src/gui/properties/peersadditiondialog.h | 5 +---- src/gui/properties/pieceavailabilitybar.h | 5 +---- src/gui/properties/piecesbar.h | 5 +---- src/gui/properties/propertieswidget.h | 5 +---- src/gui/properties/proplistdelegate.h | 5 +---- src/gui/properties/proptabbar.h | 5 +---- src/gui/properties/speedplotview.h | 5 +---- src/gui/properties/speedwidget.h | 5 +---- src/gui/properties/trackerlistwidget.h | 5 +---- src/gui/properties/trackersadditiondialog.h | 5 +---- src/gui/raisedmessagebox.h | 5 +---- src/gui/rss/articlelistwidget.h | 5 +---- src/gui/rss/automatedrssdownloader.h | 5 +---- src/gui/rss/feedlistwidget.h | 5 +---- src/gui/rss/htmlbrowser.h | 5 +---- src/gui/rss/rsswidget.h | 5 +---- src/gui/scanfoldersdelegate.h | 5 +---- src/gui/search/pluginselectdialog.h | 5 +---- src/gui/search/pluginsourcedialog.h | 5 +---- src/gui/search/searchsortmodel.h | 5 +---- src/gui/shutdownconfirmdialog.h | 5 +---- src/gui/speedlimitdialog.h | 5 +---- src/gui/statsdialog.h | 5 +---- src/gui/statusbar.h | 5 +---- src/gui/tagfiltermodel.h | 5 +---- src/gui/tagfilterproxymodel.h | 5 +---- src/gui/tagfilterwidget.h | 5 +---- src/gui/torrentcontentfiltermodel.h | 5 +---- src/gui/torrentcontentmodel.h | 5 +---- src/gui/torrentcontentmodelfile.h | 5 +---- src/gui/torrentcontentmodelfolder.h | 5 +---- src/gui/torrentcontentmodelitem.h | 5 +---- src/gui/torrentcontenttreeview.h | 5 +---- src/gui/torrentcreatordialog.h | 5 +---- src/gui/transferlistfilterswidget.h | 5 +---- src/gui/transferlistmodel.h | 5 +---- src/gui/transferlistwidget.h | 5 +---- src/gui/updownratiodialog.h | 5 +---- src/gui/utils.h | 5 +---- src/webui/webui.h | 5 +---- 122 files changed, 122 insertions(+), 488 deletions(-) diff --git a/src/app/cmdoptions.h b/src/app/cmdoptions.h index d4168a14d..25d718031 100644 --- a/src/app/cmdoptions.h +++ b/src/app/cmdoptions.h @@ -28,8 +28,7 @@ * exception statement from your version. */ -#ifndef APP_OPTIONS_H -#define APP_OPTIONS_H +#pragma once #include @@ -81,5 +80,3 @@ private: QBtCommandLineParameters parseCommandLine(const QStringList &args); void displayUsage(const QString &prgName); - -#endif // APP_OPTIONS_H diff --git a/src/app/filelogger.h b/src/app/filelogger.h index 78c8a2d5b..1a4ca6b1b 100644 --- a/src/app/filelogger.h +++ b/src/app/filelogger.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef FILELOGGER_H -#define FILELOGGER_H +#pragma once #include #include @@ -73,5 +72,3 @@ private: QFile m_logFile; QTimer m_flusher; }; - -#endif // FILELOGGER_H diff --git a/src/app/qtlocalpeer/qtlocalpeer.h b/src/app/qtlocalpeer/qtlocalpeer.h index ac8b1ff27..32f9a2f15 100644 --- a/src/app/qtlocalpeer/qtlocalpeer.h +++ b/src/app/qtlocalpeer/qtlocalpeer.h @@ -66,8 +66,7 @@ **************************************************************************** */ -#ifndef QTLOCALPEER_H -#define QTLOCALPEER_H +#pragma once #include "qtlockedfile.h" @@ -99,5 +98,3 @@ protected: private: static const char* ack; }; - -#endif // QTLOCALPEER_H diff --git a/src/app/qtlocalpeer/qtlockedfile.h b/src/app/qtlocalpeer/qtlockedfile.h index ee89062d9..f17eeb04f 100644 --- a/src/app/qtlocalpeer/qtlockedfile.h +++ b/src/app/qtlocalpeer/qtlockedfile.h @@ -66,8 +66,7 @@ **************************************************************************** */ -#ifndef QTLOCKEDFILE_H -#define QTLOCKEDFILE_H +#pragma once #include @@ -112,5 +111,3 @@ namespace QtLP_Private LockMode m_lock_mode; }; } - -#endif diff --git a/src/app/stacktrace_win.h b/src/app/stacktrace_win.h index a889506f5..86bab11ce 100644 --- a/src/app/stacktrace_win.h +++ b/src/app/stacktrace_win.h @@ -18,8 +18,7 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef STACKTRACE_WIN_H -#define STACKTRACE_WIN_H +#pragma once #include #include @@ -355,5 +354,3 @@ const QString straceWin::getBacktrace() #pragma warning(pop) #pragma optimize("g", on) #endif - -#endif // STACKTRACE_WIN_H diff --git a/src/app/stacktracedialog.h b/src/app/stacktracedialog.h index 0a7f3db19..f2876ac1d 100644 --- a/src/app/stacktracedialog.h +++ b/src/app/stacktracedialog.h @@ -27,8 +27,7 @@ * */ -#ifndef STACKTRACEDIALOG_H -#define STACKTRACEDIALOG_H +#pragma once #include @@ -51,5 +50,3 @@ public: private: Ui::StacktraceDialog *m_ui; }; - -#endif // STACKTRACEDIALOG_H diff --git a/src/base/bittorrent/bandwidthscheduler.h b/src/base/bittorrent/bandwidthscheduler.h index bf3e76263..4ce1cee2a 100644 --- a/src/base/bittorrent/bandwidthscheduler.h +++ b/src/base/bittorrent/bandwidthscheduler.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef BANDWIDTHSCHEDULER_H -#define BANDWIDTHSCHEDULER_H +#pragma once #include #include @@ -52,5 +51,3 @@ private: QTimer m_timer; bool m_lastAlternative; }; - -#endif // BANDWIDTHSCHEDULER_H diff --git a/src/base/bittorrent/cachestatus.h b/src/base/bittorrent/cachestatus.h index d5282c9d4..08ae145f5 100644 --- a/src/base/bittorrent/cachestatus.h +++ b/src/base/bittorrent/cachestatus.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef BITTORRENT_CACHESTATUS_H -#define BITTORRENT_CACHESTATUS_H +#pragma once #include @@ -42,5 +41,3 @@ namespace BitTorrent qreal readRatio = 0.0; }; } - -#endif // BITTORRENT_CACHESTATUS_H diff --git a/src/base/bittorrent/filterparserthread.h b/src/base/bittorrent/filterparserthread.h index 6467af3f2..c5fc522c0 100644 --- a/src/base/bittorrent/filterparserthread.h +++ b/src/base/bittorrent/filterparserthread.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef FILTERPARSERTHREAD_H -#define FILTERPARSERTHREAD_H +#pragma once #include @@ -64,5 +63,3 @@ private: QString m_filePath; lt::ip_filter m_filter; }; - -#endif // BITTORRENT_FILTERPARSERTHREAD_H diff --git a/src/base/bittorrent/magneturi.h b/src/base/bittorrent/magneturi.h index 87cb734f1..1bce815bc 100644 --- a/src/base/bittorrent/magneturi.h +++ b/src/base/bittorrent/magneturi.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef BITTORRENT_MAGNETURI_H -#define BITTORRENT_MAGNETURI_H +#pragma once #include @@ -65,5 +64,3 @@ namespace BitTorrent lt::add_torrent_params m_addTorrentParams; }; } - -#endif // BITTORRENT_MAGNETURI_H diff --git a/src/base/bittorrent/peerinfo.h b/src/base/bittorrent/peerinfo.h index 0e6b18842..968abb21b 100644 --- a/src/base/bittorrent/peerinfo.h +++ b/src/base/bittorrent/peerinfo.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef BITTORRENT_PEERINFO_H -#define BITTORRENT_PEERINFO_H +#pragma once #include @@ -104,5 +103,3 @@ namespace BitTorrent mutable QString m_country; }; } - -#endif // BITTORRENT_PEERINFO_H diff --git a/src/base/bittorrent/session.h b/src/base/bittorrent/session.h index d63188c94..3763363f3 100644 --- a/src/base/bittorrent/session.h +++ b/src/base/bittorrent/session.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef BITTORRENT_SESSION_H -#define BITTORRENT_SESSION_H +#pragma once #include #include @@ -794,5 +793,3 @@ namespace BitTorrent Q_DECLARE_METATYPE(std::shared_ptr) const int sharedPtrLtEntryTypeID = qRegisterMetaType>(); #endif - -#endif // BITTORRENT_SESSION_H diff --git a/src/base/bittorrent/sessionstatus.h b/src/base/bittorrent/sessionstatus.h index 1426786ba..0f8ba5caf 100644 --- a/src/base/bittorrent/sessionstatus.h +++ b/src/base/bittorrent/sessionstatus.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef BITTORRENT_SESSIONSTATUS_H -#define BITTORRENT_SESSIONSTATUS_H +#pragma once #include @@ -74,5 +73,3 @@ namespace BitTorrent quint64 peersCount = 0; }; } - -#endif // BITTORRENT_SESSIONSTATUS_H diff --git a/src/base/bittorrent/speedmonitor.h b/src/base/bittorrent/speedmonitor.h index 4bbc90c4e..86ececd0b 100644 --- a/src/base/bittorrent/speedmonitor.h +++ b/src/base/bittorrent/speedmonitor.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef SPEEDMONITOR_H -#define SPEEDMONITOR_H +#pragma once #ifndef Q_MOC_RUN #include @@ -86,5 +85,3 @@ private: boost::circular_buffer m_speedSamples; SpeedSample m_sum; }; - -#endif // SPEEDMONITOR_H diff --git a/src/base/bittorrent/statistics.h b/src/base/bittorrent/statistics.h index fd6e7f2d6..4c500e0f0 100644 --- a/src/base/bittorrent/statistics.h +++ b/src/base/bittorrent/statistics.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef STATISTICS_H -#define STATISTICS_H +#pragma once #include #include @@ -67,5 +66,3 @@ private: QTimer m_timer; }; - -#endif // STATISTICS_H diff --git a/src/base/bittorrent/torrentcreatorthread.h b/src/base/bittorrent/torrentcreatorthread.h index 5b6d3bc38..1a3a6014c 100644 --- a/src/base/bittorrent/torrentcreatorthread.h +++ b/src/base/bittorrent/torrentcreatorthread.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef BITTORRENT_TORRENTCREATORTHREAD_H -#define BITTORRENT_TORRENTCREATORTHREAD_H +#pragma once #include @@ -94,5 +93,3 @@ namespace BitTorrent TorrentCreatorParams m_params; }; } - -#endif // BITTORRENT_TORRENTCREATORTHREAD_H diff --git a/src/base/bittorrent/torrentinfo.h b/src/base/bittorrent/torrentinfo.h index 0b69a4a18..dcf2b9b4c 100644 --- a/src/base/bittorrent/torrentinfo.h +++ b/src/base/bittorrent/torrentinfo.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef BITTORRENT_TORRENTINFO_H -#define BITTORRENT_TORRENTINFO_H +#pragma once #include @@ -105,5 +104,3 @@ namespace BitTorrent std::shared_ptr m_nativeInfo; }; } - -#endif // BITTORRENT_TORRENTINFO_H diff --git a/src/base/bittorrent/tracker.h b/src/base/bittorrent/tracker.h index 37ea294bf..440e1bf2f 100644 --- a/src/base/bittorrent/tracker.h +++ b/src/base/bittorrent/tracker.h @@ -28,8 +28,7 @@ * exception statement from your version. */ -#ifndef BITTORRENT_TRACKER_H -#define BITTORRENT_TRACKER_H +#pragma once #include @@ -106,5 +105,3 @@ namespace BitTorrent QHash m_torrents; }; } - -#endif // BITTORRENT_TRACKER_H diff --git a/src/base/bittorrent/trackerentry.h b/src/base/bittorrent/trackerentry.h index 244eaac53..787c87d8a 100644 --- a/src/base/bittorrent/trackerentry.h +++ b/src/base/bittorrent/trackerentry.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef BITTORRENT_TRACKERENTRY_H -#define BITTORRENT_TRACKERENTRY_H +#pragma once #include @@ -73,5 +72,3 @@ namespace BitTorrent bool operator==(const TrackerEntry &left, const TrackerEntry &right); uint qHash(const TrackerEntry &key, uint seed); } - -#endif // BITTORRENT_TRACKERENTRY_H diff --git a/src/base/filesystemwatcher.h b/src/base/filesystemwatcher.h index 537e7e5cb..56d5f6dd6 100644 --- a/src/base/filesystemwatcher.h +++ b/src/base/filesystemwatcher.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef FILESYSTEMWATCHER_H -#define FILESYSTEMWATCHER_H +#pragma once #include #include @@ -69,5 +68,3 @@ private: QVector m_watchedFolders; QTimer m_watchTimer; }; - -#endif // FILESYSTEMWATCHER_H diff --git a/src/base/http/connection.h b/src/base/http/connection.h index 926d4e44a..abb44de8c 100644 --- a/src/base/http/connection.h +++ b/src/base/http/connection.h @@ -28,8 +28,7 @@ */ -#ifndef HTTP_CONNECTION_H -#define HTTP_CONNECTION_H +#pragma once #include #include @@ -66,5 +65,3 @@ namespace Http QElapsedTimer m_idleTimer; }; } - -#endif // HTTP_CONNECTION_H diff --git a/src/base/http/irequesthandler.h b/src/base/http/irequesthandler.h index e1829cd01..699ce4feb 100644 --- a/src/base/http/irequesthandler.h +++ b/src/base/http/irequesthandler.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef HTTP_IREQUESTHANDLER_H -#define HTTP_IREQUESTHANDLER_H +#pragma once namespace Http { @@ -42,5 +41,3 @@ namespace Http virtual Response processRequest(const Request &request, const Environment &env) = 0; }; } - -#endif // HTTP_IREQUESTHANDLER_H diff --git a/src/base/http/requestparser.h b/src/base/http/requestparser.h index b1e1d8cca..cf510165e 100644 --- a/src/base/http/requestparser.h +++ b/src/base/http/requestparser.h @@ -28,8 +28,7 @@ * exception statement from your version. */ -#ifndef HTTP_REQUESTPARSER_H -#define HTTP_REQUESTPARSER_H +#pragma once #include "types.h" @@ -70,5 +69,3 @@ namespace Http Request m_request; }; } - -#endif // HTTP_REQUESTPARSER_H diff --git a/src/base/http/responsebuilder.h b/src/base/http/responsebuilder.h index e2727c74d..f146c9724 100644 --- a/src/base/http/responsebuilder.h +++ b/src/base/http/responsebuilder.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef HTTP_RESPONSEBUILDER_H -#define HTTP_RESPONSEBUILDER_H +#pragma once #include "types.h" @@ -50,5 +49,3 @@ namespace Http Response m_response; }; } - -#endif // HTTP_RESPONSEBUILDER_H diff --git a/src/base/http/responsegenerator.h b/src/base/http/responsegenerator.h index 81dcac3a2..23139f5d3 100644 --- a/src/base/http/responsegenerator.h +++ b/src/base/http/responsegenerator.h @@ -28,8 +28,7 @@ */ -#ifndef HTTP_RESPONSEGENERATOR_H -#define HTTP_RESPONSEGENERATOR_H +#pragma once class QByteArray; class QString; @@ -42,5 +41,3 @@ namespace Http QString httpDate(); void compressContent(Response &response); } - -#endif // HTTP_RESPONSEGENERATOR_H diff --git a/src/base/http/server.h b/src/base/http/server.h index 7e3cef5c2..0d80d03ec 100644 --- a/src/base/http/server.h +++ b/src/base/http/server.h @@ -28,8 +28,7 @@ */ -#ifndef HTTP_SERVER_H -#define HTTP_SERVER_H +#pragma once #include #include @@ -67,5 +66,3 @@ namespace Http QSslKey m_key; }; } - -#endif // HTTP_SERVER_H diff --git a/src/base/http/types.h b/src/base/http/types.h index ff4d8e0a3..03318bd87 100644 --- a/src/base/http/types.h +++ b/src/base/http/types.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef HTTP_TYPES_H -#define HTTP_TYPES_H +#pragma once #include #include @@ -127,5 +126,3 @@ namespace Http } }; } - -#endif // HTTP_TYPES_H diff --git a/src/base/iconprovider.h b/src/base/iconprovider.h index b6ea47f8c..99e4548be 100644 --- a/src/base/iconprovider.h +++ b/src/base/iconprovider.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef ICONPROVIDER_H -#define ICONPROVIDER_H +#pragma once #include @@ -51,5 +50,3 @@ protected: static IconProvider *m_instance; }; - -#endif // ICONPROVIDER_H diff --git a/src/base/indexrange.h b/src/base/indexrange.h index 88719e5a0..395c79306 100644 --- a/src/base/indexrange.h +++ b/src/base/indexrange.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef QBT_INDEXRANGE_H -#define QBT_INDEXRANGE_H +#pragma once #include @@ -169,5 +168,3 @@ private: IndexType m_first; IndexDiffType m_size; }; - -#endif // QBT_INDEXRANGE_H diff --git a/src/base/logger.h b/src/base/logger.h index ae5996fe5..1f57a6b7b 100644 --- a/src/base/logger.h +++ b/src/base/logger.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef LOGGER_H -#define LOGGER_H +#pragma once #include @@ -103,5 +102,3 @@ private: // Helper function void LogMsg(const QString &message, const Log::MsgType &type = Log::NORMAL); - -#endif // LOGGER_H diff --git a/src/base/net/dnsupdater.h b/src/base/net/dnsupdater.h index 54459e4da..06723d531 100644 --- a/src/base/net/dnsupdater.h +++ b/src/base/net/dnsupdater.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef DNSUPDATER_H -#define DNSUPDATER_H +#pragma once #include #include @@ -84,5 +83,3 @@ namespace Net QString m_password; }; } - -#endif // DNSUPDATER_H diff --git a/src/base/net/downloadmanager.h b/src/base/net/downloadmanager.h index ceba46010..0b38e15d0 100644 --- a/src/base/net/downloadmanager.h +++ b/src/base/net/downloadmanager.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef NET_DOWNLOADMANAGER_H -#define NET_DOWNLOADMANAGER_H +#pragma once #include #include @@ -159,5 +158,3 @@ namespace Net connect(handler, &DownloadHandler::finished, context, slot); } } - -#endif // NET_DOWNLOADMANAGER_H diff --git a/src/base/net/geoipdatabase.h b/src/base/net/geoipdatabase.h index 44d095cb0..55d13e371 100644 --- a/src/base/net/geoipdatabase.h +++ b/src/base/net/geoipdatabase.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef GEOIPDATABASE_H -#define GEOIPDATABASE_H +#pragma once #include #include @@ -100,5 +99,3 @@ private: quint32 m_size; uchar *m_data; }; - -#endif // GEOIPDATABASE_H diff --git a/src/base/net/geoipmanager.h b/src/base/net/geoipmanager.h index 28e5c4e27..596a10564 100644 --- a/src/base/net/geoipmanager.h +++ b/src/base/net/geoipmanager.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef NET_GEOIPMANAGER_H -#define NET_GEOIPMANAGER_H +#pragma once #include @@ -73,5 +72,3 @@ namespace Net static GeoIPManager *m_instance; }; } - -#endif // NET_GEOIPMANAGER_H diff --git a/src/base/net/portforwarder.h b/src/base/net/portforwarder.h index 64b0c09b0..6fa714bd7 100644 --- a/src/base/net/portforwarder.h +++ b/src/base/net/portforwarder.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef NET_PORTFORWARDER_H -#define NET_PORTFORWARDER_H +#pragma once #include @@ -53,5 +52,3 @@ namespace Net static PortForwarder *m_instance; }; } - -#endif // NET_PORTFORWARDER_H diff --git a/src/base/net/proxyconfigurationmanager.h b/src/base/net/proxyconfigurationmanager.h index c336cc8df..c14d8834a 100644 --- a/src/base/net/proxyconfigurationmanager.h +++ b/src/base/net/proxyconfigurationmanager.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef NET_PROXYCONFIGURATIONMANAGER_H -#define NET_PROXYCONFIGURATIONMANAGER_H +#pragma once #include @@ -85,5 +84,3 @@ namespace Net bool m_isProxyOnlyForTorrents; }; } - -#endif // NET_PROXYCONFIGURATIONMANAGER_H diff --git a/src/base/net/reverseresolution.h b/src/base/net/reverseresolution.h index 875cc2b56..7e4c4af7a 100644 --- a/src/base/net/reverseresolution.h +++ b/src/base/net/reverseresolution.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef NET_REVERSERESOLUTION_H -#define NET_REVERSERESOLUTION_H +#pragma once #include #include @@ -60,5 +59,3 @@ namespace Net QCache m_cache; // }; } - -#endif // NET_REVERSERESOLUTION_H diff --git a/src/base/net/smtp.h b/src/base/net/smtp.h index 91f5aa881..3f63c0652 100644 --- a/src/base/net/smtp.h +++ b/src/base/net/smtp.h @@ -30,8 +30,7 @@ * This code is based on QxtSmtp from libqxt (http://libqxt.org) */ -#ifndef SMTP_H -#define SMTP_H +#pragma once #include #include @@ -119,5 +118,3 @@ namespace Net QString m_password; }; } - -#endif // SMTP_H diff --git a/src/base/preferences.h b/src/base/preferences.h index 9310a150d..cab46c6a1 100644 --- a/src/base/preferences.h +++ b/src/base/preferences.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef PREFERENCES_H -#define PREFERENCES_H +#pragma once #include #include @@ -403,5 +402,3 @@ public slots: void apply(); }; - -#endif // PREFERENCES_H diff --git a/src/base/profile.h b/src/base/profile.h index c2445f158..31b9003a1 100644 --- a/src/base/profile.h +++ b/src/base/profile.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef QBT_PROFILE_H -#define QBT_PROFILE_H +#pragma once #include @@ -82,5 +81,3 @@ private: }; QString specialFolderLocation(SpecialFolder folder); - -#endif // QBT_PROFILE_H diff --git a/src/base/profile_p.h b/src/base/profile_p.h index 683267797..7566ad078 100644 --- a/src/base/profile_p.h +++ b/src/base/profile_p.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef QBT_PROFILE_P_H -#define QBT_PROFILE_P_H +#pragma once #include #include @@ -132,5 +131,3 @@ namespace Private QDir m_baseDir; }; } - -#endif // QBT_PROFILE_P_H diff --git a/src/base/scanfoldersmodel.h b/src/base/scanfoldersmodel.h index 64fd31882..fe9d1a50f 100644 --- a/src/base/scanfoldersmodel.h +++ b/src/base/scanfoldersmodel.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef SCANFOLDERSMODEL_H -#define SCANFOLDERSMODEL_H +#pragma once #include #include @@ -110,5 +109,3 @@ private: QList m_pathList; FileSystemWatcher *m_fsWatcher; }; - -#endif // SCANFOLDERSMODEL_H diff --git a/src/base/settingsstorage.h b/src/base/settingsstorage.h index 060e49a72..de36e038f 100644 --- a/src/base/settingsstorage.h +++ b/src/base/settingsstorage.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef SETTINGSSTORAGE_H -#define SETTINGSSTORAGE_H +#pragma once #include #include @@ -61,5 +60,3 @@ private: QTimer m_timer; mutable QReadWriteLock m_lock; }; - -#endif // SETTINGSSTORAGE_H diff --git a/src/base/settingvalue.h b/src/base/settingvalue.h index ad863e10a..e8cc4758a 100644 --- a/src/base/settingvalue.h +++ b/src/base/settingvalue.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef SETTINGVALUE_H -#define SETTINGVALUE_H +#pragma once #include @@ -114,5 +113,3 @@ private: const QString m_keyName; T m_value; }; - -#endif // SETTINGVALUE_H diff --git a/src/base/torrentfilter.h b/src/base/torrentfilter.h index 9136e8759..088037744 100644 --- a/src/base/torrentfilter.h +++ b/src/base/torrentfilter.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef TORRENTFILTER_H -#define TORRENTFILTER_H +#pragma once #include #include @@ -102,5 +101,3 @@ private: QString m_tag; InfoHashSet m_hashSet; }; - -#endif // TORRENTFILTER_H diff --git a/src/base/tristatebool.h b/src/base/tristatebool.h index 246ef1fcb..6c0a7aca8 100644 --- a/src/base/tristatebool.h +++ b/src/base/tristatebool.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef TRISTATEBOOL_H -#define TRISTATEBOOL_H +#pragma once class TriStateBool { @@ -68,5 +67,3 @@ constexpr bool operator!=(const TriStateBool &left, const TriStateBool &right) { return !(left == right); } - -#endif // TRISTATEBOOL_H diff --git a/src/base/types.h b/src/base/types.h index f9ab0b026..a5789678c 100644 --- a/src/base/types.h +++ b/src/base/types.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef TYPES_H -#define TYPES_H +#pragma once #include @@ -42,5 +41,3 @@ enum class ShutdownDialogAction }; typedef QMap QStringMap; - -#endif // TYPES_H diff --git a/src/base/utils/fs.h b/src/base/utils/fs.h index 248d1b097..3f7e5006f 100644 --- a/src/base/utils/fs.h +++ b/src/base/utils/fs.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef UTILS_FS_H -#define UTILS_FS_H +#pragma once /** * Utility functions related to file system. @@ -79,5 +78,3 @@ namespace Utils #endif } } - -#endif // UTILS_FS_H diff --git a/src/base/utils/gzip.h b/src/base/utils/gzip.h index 4954a4023..90a1e85bc 100644 --- a/src/base/utils/gzip.h +++ b/src/base/utils/gzip.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef UTILS_GZIP_H -#define UTILS_GZIP_H +#pragma once class QByteArray; @@ -40,5 +39,3 @@ namespace Utils QByteArray decompress(const QByteArray &data, bool *ok = nullptr); } } - -#endif // UTILS_GZIP_H diff --git a/src/base/utils/misc.h b/src/base/utils/misc.h index 33d65abdc..4b9863039 100644 --- a/src/base/utils/misc.h +++ b/src/base/utils/misc.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef UTILS_MISC_H -#define UTILS_MISC_H +#pragma once #include @@ -108,5 +107,3 @@ namespace Utils #endif // Q_OS_WIN } } - -#endif // UTILS_MISC_H diff --git a/src/base/utils/net.h b/src/base/utils/net.h index 502b60a27..82a4a0286 100644 --- a/src/base/utils/net.h +++ b/src/base/utils/net.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef BASE_UTILS_NET_H -#define BASE_UTILS_NET_H +#pragma once #include #include @@ -57,5 +56,3 @@ namespace Utils bool isSSLKeyValid(const QByteArray &data); } } - -#endif // BASE_UTILS_NET_H diff --git a/src/base/utils/random.h b/src/base/utils/random.h index cc1a2888e..93f1f278c 100644 --- a/src/base/utils/random.h +++ b/src/base/utils/random.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef UTILS_RANDOM_H -#define UTILS_RANDOM_H +#pragma once #include #include @@ -39,5 +38,3 @@ namespace Utils uint32_t rand(uint32_t min = 0, uint32_t max = std::numeric_limits::max()); } } - -#endif // UTILS_FS_H diff --git a/src/base/utils/string.h b/src/base/utils/string.h index e40469fd1..ae799413c 100644 --- a/src/base/utils/string.h +++ b/src/base/utils/string.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef UTILS_STRING_H -#define UTILS_STRING_H +#pragma once #include #include @@ -74,5 +73,3 @@ namespace Utils QString join(const QVector &strings, const QString &separator); } } - -#endif // UTILS_STRING_H diff --git a/src/base/utils/version.h b/src/base/utils/version.h index 22952f7f6..f9d98bdb1 100644 --- a/src/base/utils/version.h +++ b/src/base/utils/version.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef QBITTORRENT_UTILS_VERSION_H -#define QBITTORRENT_UTILS_VERSION_H +#pragma once #include #include @@ -210,5 +209,3 @@ namespace Utils return !(left < right); } } - -#endif // QBITTORRENT_UTILS_VERSION_H diff --git a/src/gui/aboutdialog.h b/src/gui/aboutdialog.h index 7aef6920e..ca5115e34 100644 --- a/src/gui/aboutdialog.h +++ b/src/gui/aboutdialog.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef ABOUTDIALOG_H -#define ABOUTDIALOG_H +#pragma once #include @@ -48,5 +47,3 @@ public: private: Ui::AboutDialog *m_ui; }; - -#endif // ABOUTDIALOG_H diff --git a/src/gui/addnewtorrentdialog.h b/src/gui/addnewtorrentdialog.h index dda15330d..81ba949da 100644 --- a/src/gui/addnewtorrentdialog.h +++ b/src/gui/addnewtorrentdialog.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef ADDNEWTORRENTDIALOG_H -#define ADDNEWTORRENTDIALOG_H +#pragma once #include @@ -122,5 +121,3 @@ private: CachedSettingValue m_storeDialogSize; CachedSettingValue m_storeSplitterState; }; - -#endif // ADDNEWTORRENTDIALOG_H diff --git a/src/gui/advancedsettings.h b/src/gui/advancedsettings.h index 857ceb6c0..2b0edd7af 100644 --- a/src/gui/advancedsettings.h +++ b/src/gui/advancedsettings.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef ADVANCEDSETTINGS_H -#define ADVANCEDSETTINGS_H +#pragma once #include @@ -86,5 +85,3 @@ private: QComboBox m_comboBoxOSMemoryPriority; #endif }; - -#endif // ADVANCEDSETTINGS_H diff --git a/src/gui/autoexpandabledialog.h b/src/gui/autoexpandabledialog.h index 9956e5c69..f692813c8 100644 --- a/src/gui/autoexpandabledialog.h +++ b/src/gui/autoexpandabledialog.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef AUTOEXPANDABLEDIALOG_H -#define AUTOEXPANDABLEDIALOG_H +#pragma once #include #include @@ -57,5 +56,3 @@ protected: private: Ui::AutoExpandableDialog *m_ui; }; - -#endif // AUTOEXPANDABLEDIALOG_H diff --git a/src/gui/banlistoptionsdialog.h b/src/gui/banlistoptionsdialog.h index 585f37e84..131b274a9 100644 --- a/src/gui/banlistoptionsdialog.h +++ b/src/gui/banlistoptionsdialog.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef BANLISTOPTIONSDIALOG_H -#define BANLISTOPTIONSDIALOG_H +#pragma once #include @@ -59,5 +58,3 @@ private: QSortFilterProxyModel *m_sortFilter; bool m_modified; }; - -#endif // BANLISTOPTIONSDIALOG_H diff --git a/src/gui/categoryfiltermodel.h b/src/gui/categoryfiltermodel.h index 6be64beb4..a11babf1d 100644 --- a/src/gui/categoryfiltermodel.h +++ b/src/gui/categoryfiltermodel.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef CATEGORYFILTERMODEL_H -#define CATEGORYFILTERMODEL_H +#pragma once #include @@ -77,5 +76,3 @@ private: bool m_isSubcategoriesEnabled; CategoryModelItem *m_rootItem; }; - -#endif // CATEGORYFILTERMODEL_H diff --git a/src/gui/categoryfilterproxymodel.h b/src/gui/categoryfilterproxymodel.h index 7a9ead162..592dc2f81 100644 --- a/src/gui/categoryfilterproxymodel.h +++ b/src/gui/categoryfilterproxymodel.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef CATEGORYFILTERPROXYMODEL_H -#define CATEGORYFILTERPROXYMODEL_H +#pragma once #include @@ -49,5 +48,3 @@ private: // we added another overload of index(), hence this using directive: using QSortFilterProxyModel::index; }; - -#endif // CATEGORYFILTERPROXYMODEL_H diff --git a/src/gui/cookiesdialog.h b/src/gui/cookiesdialog.h index a4dcb527a..7a8e0c9fa 100644 --- a/src/gui/cookiesdialog.h +++ b/src/gui/cookiesdialog.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef COOKIESDIALOG_H -#define COOKIESDIALOG_H +#pragma once #include @@ -57,5 +56,3 @@ private: Ui::CookiesDialog *m_ui; CookiesModel *m_cookiesModel; }; - -#endif // COOKIESDIALOG_H diff --git a/src/gui/cookiesmodel.h b/src/gui/cookiesmodel.h index ff65dd838..4beb8d9cb 100644 --- a/src/gui/cookiesmodel.h +++ b/src/gui/cookiesmodel.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef COOKIESMODEL_H -#define COOKIESMODEL_H +#pragma once #include #include @@ -70,5 +69,3 @@ public: private: mutable QList m_cookies; }; - -#endif // COOKIESMODEL_H diff --git a/src/gui/deletionconfirmationdialog.h b/src/gui/deletionconfirmationdialog.h index 1e06be218..8c08450fe 100644 --- a/src/gui/deletionconfirmationdialog.h +++ b/src/gui/deletionconfirmationdialog.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef DELETIONCONFIRMATIONDIALOG_H -#define DELETIONCONFIRMATIONDIALOG_H +#pragma once #include @@ -55,5 +54,3 @@ private slots: private: Ui::DeletionConfirmationDialog *m_ui; }; - -#endif // DELETIONCONFIRMATIONDIALOG_H diff --git a/src/gui/downloadfromurldialog.h b/src/gui/downloadfromurldialog.h index ca430bac5..f3058f309 100644 --- a/src/gui/downloadfromurldialog.h +++ b/src/gui/downloadfromurldialog.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef DOWNLOADFROMURL_H -#define DOWNLOADFROMURL_H +#pragma once #include @@ -54,5 +53,3 @@ private slots: private: Ui::DownloadFromURLDialog *m_ui; }; - -#endif // DOWNLOADFROMURL_H diff --git a/src/gui/executionlogwidget.h b/src/gui/executionlogwidget.h index 3d1fc67cb..23c92c4eb 100644 --- a/src/gui/executionlogwidget.h +++ b/src/gui/executionlogwidget.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef EXECUTIONLOGWIDGET_H -#define EXECUTIONLOGWIDGET_H +#pragma once #include @@ -58,5 +57,3 @@ private: Ui::ExecutionLogWidget *m_ui; LogFilterModel *m_messageFilterModel; }; - -#endif // EXECUTIONLOGWIDGET_H diff --git a/src/gui/fspathedit.h b/src/gui/fspathedit.h index a87d41941..5b474ff13 100644 --- a/src/gui/fspathedit.h +++ b/src/gui/fspathedit.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef QBT_FSPATHEDIT_H -#define QBT_FSPATHEDIT_H +#pragma once #include @@ -149,5 +148,3 @@ private: QString editWidgetText() const override; void setEditWidgetText(const QString &text) override; }; - -#endif // QBT_FSPATHEDIT_H diff --git a/src/gui/fspathedit_p.h b/src/gui/fspathedit_p.h index 838ca4488..2869d5dda 100644 --- a/src/gui/fspathedit_p.h +++ b/src/gui/fspathedit_p.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef QBT_GUI_FSPATHEDIT_P_H -#define QBT_GUI_FSPATHEDIT_P_H +#pragma once #include #include @@ -157,5 +156,3 @@ namespace Private QString text() const; }; } - -#endif // QBT_GUI_FSPATHEDIT_P_H diff --git a/src/gui/hidabletabwidget.h b/src/gui/hidabletabwidget.h index f8f9ee143..66442475b 100644 --- a/src/gui/hidabletabwidget.h +++ b/src/gui/hidabletabwidget.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef HIDABLETABWIDGET_H -#define HIDABLETABWIDGET_H +#pragma once #include @@ -48,5 +47,3 @@ private: void paintEvent(QPaintEvent *event) override; #endif }; - -#endif // HIDABLETABWIDGET_H diff --git a/src/gui/ipsubnetwhitelistoptionsdialog.h b/src/gui/ipsubnetwhitelistoptionsdialog.h index 912c25ef5..ac231f070 100644 --- a/src/gui/ipsubnetwhitelistoptionsdialog.h +++ b/src/gui/ipsubnetwhitelistoptionsdialog.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef OPTIONS_IPSUBNETWHITELIST_H -#define OPTIONS_IPSUBNETWHITELIST_H +#pragma once #include @@ -60,5 +59,3 @@ private: QSortFilterProxyModel *m_sortFilter; bool m_modified; }; - -#endif // OPTIONS_IPSUBNETWHITELIST_H diff --git a/src/gui/lineedit.h b/src/gui/lineedit.h index ac04c8e64..1df63ad6d 100644 --- a/src/gui/lineedit.h +++ b/src/gui/lineedit.h @@ -7,8 +7,7 @@ ** ****************************************************************************/ -#ifndef LINEEDIT_H -#define LINEEDIT_H +#pragma once #include @@ -28,5 +27,3 @@ protected: private: QToolButton *m_searchButton; }; - -#endif // LIENEDIT_H diff --git a/src/gui/macutilities.h b/src/gui/macutilities.h index bb7e5c28e..5250a22fb 100644 --- a/src/gui/macutilities.h +++ b/src/gui/macutilities.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef MACUTILITIES_H -#define MACUTILITIES_H +#pragma once #include @@ -44,5 +43,3 @@ namespace MacUtils void displayNotification(const QString &title, const QString &message); void openFiles(const QSet &pathsList); } - -#endif // MACUTILITIES_H diff --git a/src/gui/mainwindow.h b/src/gui/mainwindow.h index 4485de688..b646a6e17 100644 --- a/src/gui/mainwindow.h +++ b/src/gui/mainwindow.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef MAINWINDOW_H -#define MAINWINDOW_H +#pragma once #include #include @@ -263,5 +262,3 @@ private: bool m_hasPython; QMenu *m_toolbarMenu; }; - -#endif // MAINWINDOW_H diff --git a/src/gui/optionsdialog.h b/src/gui/optionsdialog.h index 87c922b68..056dc8e17 100644 --- a/src/gui/optionsdialog.h +++ b/src/gui/optionsdialog.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef OPTIONSDIALOG_H -#define OPTIONSDIALOG_H +#pragma once #include @@ -183,5 +182,3 @@ private: QList m_addedScanDirs; QList m_removedScanDirs; }; - -#endif // OPTIONSDIALOG_H diff --git a/src/gui/powermanagement/powermanagement.h b/src/gui/powermanagement/powermanagement.h index 632750115..141856837 100644 --- a/src/gui/powermanagement/powermanagement.h +++ b/src/gui/powermanagement/powermanagement.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef POWERMANAGEMENT_H -#define POWERMANAGEMENT_H +#pragma once #include @@ -64,5 +63,3 @@ private: IOPMAssertionID m_assertionID; #endif }; - -#endif // POWERMANAGEMENT_H diff --git a/src/gui/powermanagement/powermanagement_x11.h b/src/gui/powermanagement/powermanagement_x11.h index 6e8b77aae..b83ea6f0b 100644 --- a/src/gui/powermanagement/powermanagement_x11.h +++ b/src/gui/powermanagement/powermanagement_x11.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef POWERMANAGEMENTINHIBITOR_H -#define POWERMANAGEMENTINHIBITOR_H +#pragma once #include @@ -63,5 +62,3 @@ private: bool m_useGSM; }; - -#endif // POWERMANAGEMENTINHIBITOR_H diff --git a/src/gui/previewlistdelegate.h b/src/gui/previewlistdelegate.h index d8a0fd7a6..e98d40a90 100644 --- a/src/gui/previewlistdelegate.h +++ b/src/gui/previewlistdelegate.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef PREVIEWLISTDELEGATE_H -#define PREVIEWLISTDELEGATE_H +#pragma once #include @@ -43,5 +42,3 @@ private: void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; QWidget *createEditor(QWidget *, const QStyleOptionViewItem &, const QModelIndex &) const override; }; - -#endif // PREVIEWLISTDELEGATE_H diff --git a/src/gui/previewselectdialog.h b/src/gui/previewselectdialog.h index 51d5a0213..08be86dc7 100644 --- a/src/gui/previewselectdialog.h +++ b/src/gui/previewselectdialog.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef PREVIEWSELECTDIALOG_H -#define PREVIEWSELECTDIALOG_H +#pragma once #include @@ -86,5 +85,3 @@ private: CachedSettingValue m_storeDialogSize; CachedSettingValue m_storeTreeHeaderState; }; - -#endif // PREVIEWSELECTDIALOG_H diff --git a/src/gui/programupdater.h b/src/gui/programupdater.h index 628a511bb..c843324ab 100644 --- a/src/gui/programupdater.h +++ b/src/gui/programupdater.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef PROGRAMUPDATER_H -#define PROGRAMUPDATER_H +#pragma once #include @@ -59,5 +58,3 @@ private: QString m_updateUrl; bool m_invokedByUser; }; - -#endif // PROGRAMUPDATER_H diff --git a/src/gui/properties/downloadedpiecesbar.h b/src/gui/properties/downloadedpiecesbar.h index 40ee6f90a..4deac0180 100644 --- a/src/gui/properties/downloadedpiecesbar.h +++ b/src/gui/properties/downloadedpiecesbar.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef DOWNLOADEDPIECESBAR_H -#define DOWNLOADEDPIECESBAR_H +#pragma once #include #include @@ -63,5 +62,3 @@ private: QBitArray m_pieces; QBitArray m_downloadedPieces; }; - -#endif // DOWNLOADEDPIECESBAR_H diff --git a/src/gui/properties/peerlistsortmodel.h b/src/gui/properties/peerlistsortmodel.h index d3121b208..aa66497bc 100644 --- a/src/gui/properties/peerlistsortmodel.h +++ b/src/gui/properties/peerlistsortmodel.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef PEERLISTSORTMODEL_H -#define PEERLISTSORTMODEL_H +#pragma once #include @@ -47,5 +46,3 @@ public: private: bool lessThan(const QModelIndex &left, const QModelIndex &right) const override; }; - -#endif // PEERLISTSORTMODEL_H diff --git a/src/gui/properties/peerlistwidget.h b/src/gui/properties/peerlistwidget.h index 8c7957235..e3c0c9f5f 100644 --- a/src/gui/properties/peerlistwidget.h +++ b/src/gui/properties/peerlistwidget.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef PEERLISTWIDGET_H -#define PEERLISTWIDGET_H +#pragma once #include #include @@ -109,5 +108,3 @@ private: QHash> m_itemsByIP; // must be kept in sync with `m_peerItems` bool m_resolveCountries; }; - -#endif // PEERLISTWIDGET_H diff --git a/src/gui/properties/peersadditiondialog.h b/src/gui/properties/peersadditiondialog.h index 867be695e..fab3075bb 100644 --- a/src/gui/properties/peersadditiondialog.h +++ b/src/gui/properties/peersadditiondialog.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef PEERADDITION_H -#define PEERADDITION_H +#pragma once #include #include @@ -56,5 +55,3 @@ private: Ui::PeersAdditionDialog *m_ui; QVector m_peersList; }; - -#endif // PEERADDITION_H diff --git a/src/gui/properties/pieceavailabilitybar.h b/src/gui/properties/pieceavailabilitybar.h index 3fe495847..79033c2f2 100644 --- a/src/gui/properties/pieceavailabilitybar.h +++ b/src/gui/properties/pieceavailabilitybar.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef PIECEAVAILABILITYBAR_H -#define PIECEAVAILABILITYBAR_H +#pragma once #include "piecesbar.h" @@ -56,5 +55,3 @@ private: // scale int vector to float vector QVector intToFloatVector(const QVector &vecin, int reqSize); }; - -#endif // PIECEAVAILABILITYBAR_H diff --git a/src/gui/properties/piecesbar.h b/src/gui/properties/piecesbar.h index 335b0c23a..fabcf7b36 100644 --- a/src/gui/properties/piecesbar.h +++ b/src/gui/properties/piecesbar.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef PIECESBAR_H -#define PIECESBAR_H +#pragma once #include #include @@ -95,5 +94,3 @@ private: bool m_hovered; QRect m_highlitedRegion; //!< part of the bar can be highlighted; this rectangle is in the same frame as m_image }; - -#endif // PIECESBAR_H diff --git a/src/gui/properties/propertieswidget.h b/src/gui/properties/propertieswidget.h index a6f450456..d7546bc07 100644 --- a/src/gui/properties/propertieswidget.h +++ b/src/gui/properties/propertieswidget.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef PROPERTIESWIDGET_H -#define PROPERTIESWIDGET_H +#pragma once #include #include @@ -125,5 +124,3 @@ private: LineEdit *m_contentFilterLine; int m_handleWidth; }; - -#endif // PROPERTIESWIDGET_H diff --git a/src/gui/properties/proplistdelegate.h b/src/gui/properties/proplistdelegate.h index 563c77bc5..815582bbe 100644 --- a/src/gui/properties/proplistdelegate.h +++ b/src/gui/properties/proplistdelegate.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef PROPLISTDELEGATE_H -#define PROPLISTDELEGATE_H +#pragma once #include "gui/progressbardelegate.h" @@ -71,5 +70,3 @@ private: PropertiesWidget *m_properties; }; - -#endif // PROPLISTDELEGATE_H diff --git a/src/gui/properties/proptabbar.h b/src/gui/properties/proptabbar.h index b49cfa752..ef6416770 100644 --- a/src/gui/properties/proptabbar.h +++ b/src/gui/properties/proptabbar.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef PROPTABBAR_H -#define PROPTABBAR_H +#pragma once #include @@ -64,5 +63,3 @@ private: QButtonGroup *m_btnGroup; int m_currentIndex; }; - -#endif // PROPTABBAR_H diff --git a/src/gui/properties/speedplotview.h b/src/gui/properties/speedplotview.h index 7aa4da0ce..b4db1df26 100644 --- a/src/gui/properties/speedplotview.h +++ b/src/gui/properties/speedplotview.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef SPEEDPLOTVIEW_H -#define SPEEDPLOTVIEW_H +#pragma once #ifndef Q_MOC_RUN #include @@ -131,5 +130,3 @@ private: TimePeriod m_period; int m_viewablePointsCount; }; - -#endif // SPEEDPLOTVIEW_H diff --git a/src/gui/properties/speedwidget.h b/src/gui/properties/speedwidget.h index 79310ebd0..976d757bb 100644 --- a/src/gui/properties/speedwidget.h +++ b/src/gui/properties/speedwidget.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef SPEEDWIDGET_H -#define SPEEDWIDGET_H +#pragma once #include #include @@ -80,5 +79,3 @@ private: QMenu *m_graphsMenu; QList m_graphsMenuActions; }; - -#endif // SPEEDWIDGET_H diff --git a/src/gui/properties/trackerlistwidget.h b/src/gui/properties/trackerlistwidget.h index 21daa5d35..58d36d031 100644 --- a/src/gui/properties/trackerlistwidget.h +++ b/src/gui/properties/trackerlistwidget.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef TRACKERLIST_H -#define TRACKERLIST_H +#pragma once #include #include @@ -95,5 +94,3 @@ private: QTreeWidgetItem *m_PEXItem; QTreeWidgetItem *m_LSDItem; }; - -#endif // TRACKERLIST_H diff --git a/src/gui/properties/trackersadditiondialog.h b/src/gui/properties/trackersadditiondialog.h index ddcfe2b6e..817a32dda 100644 --- a/src/gui/properties/trackersadditiondialog.h +++ b/src/gui/properties/trackersadditiondialog.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef TRACKERSADDITION_H -#define TRACKERSADDITION_H +#pragma once #include #include @@ -68,5 +67,3 @@ private: Ui::TrackersAdditionDialog *m_ui; BitTorrent::TorrentHandle *const m_torrent; }; - -#endif // TRACKERSADDITION_H diff --git a/src/gui/raisedmessagebox.h b/src/gui/raisedmessagebox.h index b1a324f26..28d8fd238 100644 --- a/src/gui/raisedmessagebox.h +++ b/src/gui/raisedmessagebox.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef RAISEDMESSAGEBOX_H -#define RAISEDMESSAGEBOX_H +#pragma once #include @@ -52,5 +51,3 @@ private: static QMessageBox::StandardButton impl(const QMessageBox::Icon &icon, QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons = QMessageBox::Ok, QMessageBox::StandardButton defaultButton = QMessageBox::NoButton); }; - -#endif // RAISEDMESSAGEBOX_H diff --git a/src/gui/rss/articlelistwidget.h b/src/gui/rss/articlelistwidget.h index 1dfadbb97..0e74e4088 100644 --- a/src/gui/rss/articlelistwidget.h +++ b/src/gui/rss/articlelistwidget.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef ARTICLELISTWIDGET_H -#define ARTICLELISTWIDGET_H +#pragma once #include #include @@ -63,5 +62,3 @@ private: bool m_unreadOnly = false; QHash m_rssArticleToListItemMapping; }; - -#endif // ARTICLELISTWIDGET_H diff --git a/src/gui/rss/automatedrssdownloader.h b/src/gui/rss/automatedrssdownloader.h index 0c2c3768a..9a964ee4d 100644 --- a/src/gui/rss/automatedrssdownloader.h +++ b/src/gui/rss/automatedrssdownloader.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef AUTOMATEDRSSDOWNLOADER_H -#define AUTOMATEDRSSDOWNLOADER_H +#pragma once #include #include @@ -106,5 +105,3 @@ private: QHash m_itemsByRuleName; QRegularExpression *m_episodeRegex; }; - -#endif // AUTOMATEDRSSDOWNLOADER_H diff --git a/src/gui/rss/feedlistwidget.h b/src/gui/rss/feedlistwidget.h index 47b343e96..8bb8ea08b 100644 --- a/src/gui/rss/feedlistwidget.h +++ b/src/gui/rss/feedlistwidget.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef FEEDLISTWIDGET_H -#define FEEDLISTWIDGET_H +#pragma once #include #include @@ -73,5 +72,3 @@ private: QHash m_rssToTreeItemMapping; QTreeWidgetItem *m_unreadStickyItem; }; - -#endif // FEEDLISTWIDGET_H diff --git a/src/gui/rss/htmlbrowser.h b/src/gui/rss/htmlbrowser.h index baf35f47c..d9eff4afb 100644 --- a/src/gui/rss/htmlbrowser.h +++ b/src/gui/rss/htmlbrowser.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef HTMLBROWSER_H -#define HTMLBROWSER_H +#pragma once #include #include @@ -54,5 +53,3 @@ protected: protected slots: void resourceLoaded(QNetworkReply *reply); }; - -#endif // HTMLBROWSER_H diff --git a/src/gui/rss/rsswidget.h b/src/gui/rss/rsswidget.h index 8a6b6f958..229bd51de 100644 --- a/src/gui/rss/rsswidget.h +++ b/src/gui/rss/rsswidget.h @@ -28,8 +28,7 @@ * exception statement from your version. */ -#ifndef RSSWIDGET_H -#define RSSWIDGET_H +#pragma once #include @@ -86,5 +85,3 @@ private: ArticleListWidget *m_articleListWidget; FeedListWidget *m_feedListWidget; }; - -#endif // RSSWIDGET_H diff --git a/src/gui/scanfoldersdelegate.h b/src/gui/scanfoldersdelegate.h index cdc1d2759..454218670 100644 --- a/src/gui/scanfoldersdelegate.h +++ b/src/gui/scanfoldersdelegate.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef SCANFOLDERSDELEGATE_H -#define SCANFOLDERSDELEGATE_H +#pragma once #include @@ -57,5 +56,3 @@ private: QTreeView *m_folderView; }; - -#endif // SCANFOLDERSDELEGATE_H diff --git a/src/gui/search/pluginselectdialog.h b/src/gui/search/pluginselectdialog.h index 7a2d737d6..d47767786 100644 --- a/src/gui/search/pluginselectdialog.h +++ b/src/gui/search/pluginselectdialog.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef PLUGINSELECTDIALOG_H -#define PLUGINSELECTDIALOG_H +#pragma once #include #include @@ -97,5 +96,3 @@ private: int m_asyncOps; int m_pendingUpdates; }; - -#endif // PLUGINSELECTDIALOG_H diff --git a/src/gui/search/pluginsourcedialog.h b/src/gui/search/pluginsourcedialog.h index 6d116afd0..8a8948a5b 100644 --- a/src/gui/search/pluginsourcedialog.h +++ b/src/gui/search/pluginsourcedialog.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef PLUGINSOURCEDIALOG_H -#define PLUGINSOURCEDIALOG_H +#pragma once #include @@ -55,5 +54,3 @@ private slots: private: Ui::PluginSourceDialog *m_ui; }; - -#endif // PLUGINSOURCEDIALOG_H diff --git a/src/gui/search/searchsortmodel.h b/src/gui/search/searchsortmodel.h index fdd83dd94..fda94cc6d 100644 --- a/src/gui/search/searchsortmodel.h +++ b/src/gui/search/searchsortmodel.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef SEARCHSORTMODEL_H -#define SEARCHSORTMODEL_H +#pragma once #include #include @@ -96,5 +95,3 @@ private: int m_minLeeches, m_maxLeeches; qint64 m_minSize, m_maxSize; }; - -#endif // SEARCHSORTMODEL_H diff --git a/src/gui/shutdownconfirmdialog.h b/src/gui/shutdownconfirmdialog.h index 7cec60cc3..6912b5e55 100644 --- a/src/gui/shutdownconfirmdialog.h +++ b/src/gui/shutdownconfirmdialog.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef SHUTDOWNCONFIRMDIALOG_H -#define SHUTDOWNCONFIRMDIALOG_H +#pragma once #include #include @@ -68,5 +67,3 @@ private: ShutdownDialogAction m_action; QString m_msg; }; - -#endif // SHUTDOWNCONFIRMDIALOG_H diff --git a/src/gui/speedlimitdialog.h b/src/gui/speedlimitdialog.h index c8f267ee2..b83702e02 100644 --- a/src/gui/speedlimitdialog.h +++ b/src/gui/speedlimitdialog.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef SPEEDLIMITDIALOG_H -#define SPEEDLIMITDIALOG_H +#pragma once #include @@ -55,5 +54,3 @@ private: Ui::SpeedLimitDialog *m_ui; }; - -#endif // SPEEDLIMITDIALOG_H diff --git a/src/gui/statsdialog.h b/src/gui/statsdialog.h index 19670754c..2bc3289a1 100644 --- a/src/gui/statsdialog.h +++ b/src/gui/statsdialog.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef STATSDIALOG_H -#define STATSDIALOG_H +#pragma once #include @@ -50,5 +49,3 @@ private slots: private: Ui::StatsDialog *m_ui; }; - -#endif // STATSDIALOG_H diff --git a/src/gui/statusbar.h b/src/gui/statusbar.h index c86c3b3fd..2bcebd1c7 100644 --- a/src/gui/statusbar.h +++ b/src/gui/statusbar.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef STATUSBAR_H -#define STATUSBAR_H +#pragma once #include @@ -72,5 +71,3 @@ private: QPushButton *m_connecStatusLblIcon; QPushButton *m_altSpeedsBtn; }; - -#endif // STATUSBAR_H diff --git a/src/gui/tagfiltermodel.h b/src/gui/tagfiltermodel.h index e482df8e4..8c7d5b0d9 100644 --- a/src/gui/tagfiltermodel.h +++ b/src/gui/tagfiltermodel.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef TAGFILTERMODEL_H -#define TAGFILTERMODEL_H +#pragma once #include #include @@ -83,5 +82,3 @@ private: QList m_tagItems; // Index corresponds to its row }; - -#endif // TAGFILTERMODEL_H diff --git a/src/gui/tagfilterproxymodel.h b/src/gui/tagfilterproxymodel.h index 7e53bb492..e4664e98c 100644 --- a/src/gui/tagfilterproxymodel.h +++ b/src/gui/tagfilterproxymodel.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef TAGFILTERPROXYMODEL_H -#define TAGFILTERPROXYMODEL_H +#pragma once #include @@ -49,5 +48,3 @@ private: // we added another overload of index(), hence this using directive: using QSortFilterProxyModel::index; }; - -#endif // TAGFILTERPROXYMODEL_H diff --git a/src/gui/tagfilterwidget.h b/src/gui/tagfilterwidget.h index 4694b085c..55a5f1364 100644 --- a/src/gui/tagfilterwidget.h +++ b/src/gui/tagfilterwidget.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef TAGFILTERWIDGET_H -#define TAGFILTERWIDGET_H +#pragma once #include @@ -60,5 +59,3 @@ private: void rowsInserted(const QModelIndex &parent, int start, int end) override; QString askTagName(); }; - -#endif // TAGFILTERWIDGET_H diff --git a/src/gui/torrentcontentfiltermodel.h b/src/gui/torrentcontentfiltermodel.h index 4bddc23bc..993502454 100644 --- a/src/gui/torrentcontentfiltermodel.h +++ b/src/gui/torrentcontentfiltermodel.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef TORRENTCONTENTFILTERMODEL_H -#define TORRENTCONTENTFILTERMODEL_H +#pragma once #include @@ -63,5 +62,3 @@ private: TorrentContentModel *m_model; }; - -#endif // TORRENTCONTENTFILTERMODEL_H diff --git a/src/gui/torrentcontentmodel.h b/src/gui/torrentcontentmodel.h index 90bf9ba8c..71473794e 100644 --- a/src/gui/torrentcontentmodel.h +++ b/src/gui/torrentcontentmodel.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef TORRENTCONTENTMODEL_H -#define TORRENTCONTENTMODEL_H +#pragma once #include #include @@ -89,5 +88,3 @@ private: QVector m_filesIndex; QFileIconProvider *m_fileIconProvider; }; - -#endif // TORRENTCONTENTMODEL_H diff --git a/src/gui/torrentcontentmodelfile.h b/src/gui/torrentcontentmodelfile.h index fe0cc4797..4aa322ef3 100644 --- a/src/gui/torrentcontentmodelfile.h +++ b/src/gui/torrentcontentmodelfile.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef TORRENTCONTENTMODELFILE_H -#define TORRENTCONTENTMODELFILE_H +#pragma once #include "torrentcontentmodelitem.h" @@ -51,5 +50,3 @@ public: private: int m_fileIndex; }; - -#endif // TORRENTCONTENTMODELFILE_H diff --git a/src/gui/torrentcontentmodelfolder.h b/src/gui/torrentcontentmodelfolder.h index 3654c21fd..80ba601ee 100644 --- a/src/gui/torrentcontentmodelfolder.h +++ b/src/gui/torrentcontentmodelfolder.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef TORRENTCONTENTMODELFOLDER_H -#define TORRENTCONTENTMODELFOLDER_H +#pragma once #include "torrentcontentmodelitem.h" @@ -66,5 +65,3 @@ public: private: QVector m_childItems; }; - -#endif // TORRENTCONTENTMODELFOLDER_H diff --git a/src/gui/torrentcontentmodelitem.h b/src/gui/torrentcontentmodelitem.h index 5eede7069..6cf1dadcb 100644 --- a/src/gui/torrentcontentmodelitem.h +++ b/src/gui/torrentcontentmodelitem.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef TORRENTCONTENTMODELITEM_H -#define TORRENTCONTENTMODELITEM_H +#pragma once #include #include @@ -96,5 +95,3 @@ protected: qreal m_progress; qreal m_availability; }; - -#endif // TORRENTCONTENTMODELITEM_H diff --git a/src/gui/torrentcontenttreeview.h b/src/gui/torrentcontenttreeview.h index 334030312..969f3dedc 100644 --- a/src/gui/torrentcontenttreeview.h +++ b/src/gui/torrentcontenttreeview.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef TORRENTCONTENTTREEVIEW_H -#define TORRENTCONTENTTREEVIEW_H +#pragma once #include @@ -51,5 +50,3 @@ public: private: QModelIndex currentNameCell(); }; - -#endif // TORRENTCONTENTTREEVIEW_H diff --git a/src/gui/torrentcreatordialog.h b/src/gui/torrentcreatordialog.h index f51130959..25a0de3ea 100644 --- a/src/gui/torrentcreatordialog.h +++ b/src/gui/torrentcreatordialog.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef TORRENTCREATORDIALOG_H -#define TORRENTCREATORDIALOG_H +#pragma once #include @@ -97,5 +96,3 @@ private: CachedSettingValue m_storeLastSavePath; CachedSettingValue m_storeSource; }; - -#endif // TORRENTCREATORDIALOG_H diff --git a/src/gui/transferlistfilterswidget.h b/src/gui/transferlistfilterswidget.h index ed6b01d0a..3046c8e34 100644 --- a/src/gui/transferlistfilterswidget.h +++ b/src/gui/transferlistfilterswidget.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef TRANSFERLISTFILTERSWIDGET_H -#define TRANSFERLISTFILTERSWIDGET_H +#pragma once #include #include @@ -176,5 +175,3 @@ private: CategoryFilterWidget *m_categoryFilterWidget; TagFilterWidget *m_tagFilterWidget; }; - -#endif // TRANSFERLISTFILTERSWIDGET_H diff --git a/src/gui/transferlistmodel.h b/src/gui/transferlistmodel.h index 5c80a6d70..ef77711cd 100644 --- a/src/gui/transferlistmodel.h +++ b/src/gui/transferlistmodel.h @@ -27,8 +27,7 @@ * exception statement from your version. */ -#ifndef TRANSFERLISTMODEL_H -#define TRANSFERLISTMODEL_H +#pragma once #include #include @@ -128,5 +127,3 @@ private: HideZeroValuesMode m_hideZeroValuesMode = HideZeroValuesMode::Never; }; - -#endif // TRANSFERLISTMODEL_H diff --git a/src/gui/transferlistwidget.h b/src/gui/transferlistwidget.h index 1c47cb7b5..b809f50eb 100644 --- a/src/gui/transferlistwidget.h +++ b/src/gui/transferlistwidget.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef TRANSFERLISTWIDGET_H -#define TRANSFERLISTWIDGET_H +#pragma once #include #include @@ -129,5 +128,3 @@ private: TransferListSortModel *m_sortFilterModel; MainWindow *m_mainWindow; }; - -#endif // TRANSFERLISTWIDGET_H diff --git a/src/gui/updownratiodialog.h b/src/gui/updownratiodialog.h index a3d482585..af55c0d45 100644 --- a/src/gui/updownratiodialog.h +++ b/src/gui/updownratiodialog.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef UPDOWNRATIODIALOG_H -#define UPDOWNRATIODIALOG_H +#pragma once #include @@ -61,5 +60,3 @@ private slots: private: Ui::UpDownRatioDialog *m_ui; }; - -#endif // UPDOWNRATIODIALOG_H diff --git a/src/gui/utils.h b/src/gui/utils.h index 9da4e6326..d7ec79785 100644 --- a/src/gui/utils.h +++ b/src/gui/utils.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef UTILS_GUI_H -#define UTILS_GUI_H +#pragma once #include @@ -62,5 +61,3 @@ namespace Utils void openFolderSelect(const QString &absolutePath); } } - -#endif // UTILS_GUI_H diff --git a/src/webui/webui.h b/src/webui/webui.h index 55ab815e2..098296416 100644 --- a/src/webui/webui.h +++ b/src/webui/webui.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef WEBUI_H -#define WEBUI_H +#pragma once #include #include @@ -67,5 +66,3 @@ private: QPointer m_webapp; quint16 m_port; }; - -#endif // WEBUI_H