Browse Source

Merge pull request #12531 from Chocobo1/final

Add final specifier to classes
adaptive-webui-19844
Mike Tzou 5 years ago committed by GitHub
parent
commit
349a07a443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/app/application.h
  2. 2
      src/app/qtlocalpeer/qtlockedfile.h
  3. 2
      src/base/bittorrent/private/filterparserthread.h
  4. 2
      src/base/bittorrent/private/nativesessionextension.h
  5. 2
      src/base/bittorrent/private/nativetorrentextension.h
  6. 2
      src/base/bittorrent/private/portforwarderimpl.h
  7. 2
      src/base/bittorrent/torrentcreatorthread.h
  8. 2
      src/base/bittorrent/tracker.h
  9. 2
      src/base/http/server.h
  10. 2
      src/base/net/downloadmanager.cpp
  11. 2
      src/base/net/private/downloadhandlerimpl.h
  12. 8
      src/base/private/profile_p.h
  13. 2
      src/base/rss/private/rss_parser.cpp
  14. 2
      src/base/scanfoldersmodel.h
  15. 4
      src/webui/webapplication.h

2
src/app/application.h

@ -68,7 +68,7 @@ namespace RSS @@ -68,7 +68,7 @@ namespace RSS
class AutoDownloader;
}
class Application : public BaseApplication
class Application final : public BaseApplication
{
Q_OBJECT
Q_DISABLE_COPY(Application)

2
src/app/qtlocalpeer/qtlockedfile.h

@ -77,7 +77,7 @@ @@ -77,7 +77,7 @@
namespace QtLP_Private
{
class QtLockedFile : public QFile
class QtLockedFile final : public QFile
{
public:
enum LockMode

2
src/base/bittorrent/private/filterparserthread.h

@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
class QDataStream;
class FilterParserThread : public QThread
class FilterParserThread final : public QThread
{
Q_OBJECT

2
src/base/bittorrent/private/nativesessionextension.h

@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
#include <libtorrent/extensions.hpp>
#include <libtorrent/version.hpp>
class NativeSessionExtension : public lt::plugin
class NativeSessionExtension final : public lt::plugin
{
#if (LIBTORRENT_VERSION_NUM >= 10200)
lt::feature_flags_t implemented_features() override;

2
src/base/bittorrent/private/nativetorrentextension.h

@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
#include <libtorrent/torrent_handle.hpp>
#include <libtorrent/version.hpp>
class NativeTorrentExtension : public lt::torrent_plugin
class NativeTorrentExtension final : public lt::torrent_plugin
{
public:
explicit NativeTorrentExtension(const lt::torrent_handle &torrentHandle);

2
src/base/bittorrent/private/portforwarderimpl.h

@ -44,7 +44,7 @@ using LTPortMapping = int; @@ -44,7 +44,7 @@ using LTPortMapping = int;
using LTPortMapping = lt::port_mapping_t;
#endif
class PortForwarderImpl : public Net::PortForwarder
class PortForwarderImpl final : public Net::PortForwarder
{
Q_OBJECT
Q_DISABLE_COPY(PortForwarderImpl)

2
src/base/bittorrent/torrentcreatorthread.h

@ -48,7 +48,7 @@ namespace BitTorrent @@ -48,7 +48,7 @@ namespace BitTorrent
QStringList urlSeeds;
};
class TorrentCreatorThread : public QThread
class TorrentCreatorThread final : public QThread
{
Q_OBJECT

2
src/base/bittorrent/tracker.h

@ -70,7 +70,7 @@ namespace BitTorrent @@ -70,7 +70,7 @@ namespace BitTorrent
// *Basic* Bittorrent tracker implementation
// [BEP-3] The BitTorrent Protocol Specification
// also see: https://wiki.theory.org/index.php/BitTorrentSpecification#Tracker_HTTP.2FHTTPS_Protocol
class Tracker : public QObject, public Http::IRequestHandler, private Http::ResponseBuilder
class Tracker final : public QObject, public Http::IRequestHandler, private Http::ResponseBuilder
{
Q_OBJECT
Q_DISABLE_COPY(Tracker)

2
src/base/http/server.h

@ -41,7 +41,7 @@ namespace Http @@ -41,7 +41,7 @@ namespace Http
class IRequestHandler;
class Connection;
class Server : public QTcpServer
class Server final : public QTcpServer
{
Q_OBJECT
Q_DISABLE_COPY(Server)

2
src/base/net/downloadmanager.cpp

@ -52,7 +52,7 @@ namespace @@ -52,7 +52,7 @@ namespace
// Disguise as Firefox to avoid web server banning
const char DEFAULT_USER_AGENT[] = "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0";
class NetworkCookieJar : public QNetworkCookieJar
class NetworkCookieJar final : public QNetworkCookieJar
{
public:
explicit NetworkCookieJar(QObject *parent = nullptr)

2
src/base/net/private/downloadhandlerimpl.h

@ -36,7 +36,7 @@ @@ -36,7 +36,7 @@
class QObject;
class QUrl;
class DownloadHandlerImpl : public Net::DownloadHandler
class DownloadHandlerImpl final : public Net::DownloadHandler
{
Q_OBJECT
Q_DISABLE_COPY(DownloadHandlerImpl)

8
src/base/private/profile_p.h

@ -63,7 +63,7 @@ namespace Private @@ -63,7 +63,7 @@ namespace Private
};
/// Default implementation. Takes paths from system
class DefaultProfile : public Profile
class DefaultProfile final : public Profile
{
public:
explicit DefaultProfile(const QString &configurationName);
@ -86,7 +86,7 @@ namespace Private @@ -86,7 +86,7 @@ namespace Private
};
/// Custom tree: creates directories under the specified root directory
class CustomProfile : public Profile
class CustomProfile final : public Profile
{
public:
CustomProfile(const QString &rootPath, const QString &configurationName);
@ -114,14 +114,14 @@ namespace Private @@ -114,14 +114,14 @@ namespace Private
virtual ~PathConverter() = default;
};
class NoConvertConverter : public PathConverter
class NoConvertConverter final : public PathConverter
{
public:
QString toPortablePath(const QString &path) const override;
QString fromPortablePath(const QString &portablePath) const override;
};
class Converter : public PathConverter
class Converter final : public PathConverter
{
public:
explicit Converter(const QString &basePath);

2
src/base/rss/private/rss_parser.cpp

@ -44,7 +44,7 @@ @@ -44,7 +44,7 @@
namespace
{
class XmlStreamEntityResolver : public QXmlStreamEntityResolver
class XmlStreamEntityResolver final : public QXmlStreamEntityResolver
{
public:
QString resolveUndeclaredEntity(const QString &name) override

2
src/base/scanfoldersmodel.h

@ -36,7 +36,7 @@ class QStringList; @@ -36,7 +36,7 @@ class QStringList;
class FileSystemWatcher;
class ScanFoldersModel : public QAbstractListModel
class ScanFoldersModel final : public QAbstractListModel
{
Q_OBJECT
Q_DISABLE_COPY(ScanFoldersModel)

4
src/webui/webapplication.h

@ -50,7 +50,7 @@ class WebApplication; @@ -50,7 +50,7 @@ class WebApplication;
constexpr char C_SID[] = "SID"; // name of session id cookie
class WebSession : public ISession
class WebSession final : public ISession
{
public:
explicit WebSession(const QString &sid);
@ -69,7 +69,7 @@ private: @@ -69,7 +69,7 @@ private:
QVariantHash m_data;
};
class WebApplication
class WebApplication final
: public QObject, public Http::IRequestHandler, public ISessionManager
, private Http::ResponseBuilder
{

Loading…
Cancel
Save