summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
Diffstat (limited to 'methods')
-rw-r--r--methods/connect.cc4
-rw-r--r--methods/copy.cc2
-rw-r--r--methods/file.cc2
-rw-r--r--methods/http.cc2
-rw-r--r--methods/http.h4
-rw-r--r--methods/rred.cc2
-rw-r--r--methods/store.cc2
7 files changed, 9 insertions, 9 deletions
diff --git a/methods/connect.cc b/methods/connect.cc
index f3e199d0a..12847c594 100644
--- a/methods/connect.cc
+++ b/methods/connect.cc
@@ -85,7 +85,7 @@ static bool ConnectionAllowed(char const * const Service, std::string const &Hos
/*}}}*/
// File Descriptor based Fd /*{{{*/
-struct FdFd : public MethodFd
+struct FdFd final : public MethodFd
{
int fd = -1;
int Fd() APT_OVERRIDE { return fd; }
@@ -805,7 +805,7 @@ ResultState UnwrapSocks(std::string Host, int Port, URI Proxy, std::unique_ptr<M
// UnwrapTLS - Handle TLS connections /*{{{*/
// ---------------------------------------------------------------------
/* Performs a TLS handshake on the socket */
-struct TlsFd : public MethodFd
+struct TlsFd final : public MethodFd
{
std::unique_ptr<MethodFd> UnderlyingFd;
gnutls_session_t session;
diff --git a/methods/copy.cc b/methods/copy.cc
index 82eed150c..44205e4cd 100644
--- a/methods/copy.cc
+++ b/methods/copy.cc
@@ -24,7 +24,7 @@
#include <apti18n.h>
/*}}}*/
-class CopyMethod : public aptMethod
+class CopyMethod final : public aptMethod
{
virtual bool Fetch(FetchItem *Itm) APT_OVERRIDE;
diff --git a/methods/file.cc b/methods/file.cc
index b2fe133f2..0a76c0c94 100644
--- a/methods/file.cc
+++ b/methods/file.cc
@@ -27,7 +27,7 @@
#include <apti18n.h>
/*}}}*/
-class FileMethod : public aptMethod
+class FileMethod final : public aptMethod
{
virtual bool Fetch(FetchItem *Itm) APT_OVERRIDE;
diff --git a/methods/http.cc b/methods/http.cc
index 4d0e60d93..1e76a1f57 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -279,7 +279,7 @@ CircleBuf::~CircleBuf() /*{{{*/
// UnwrapHTTPConnect - Does the HTTP CONNECT handshake /*{{{*/
// ---------------------------------------------------------------------
/* Performs a TLS handshake on the socket */
-struct HttpConnectFd : public MethodFd
+struct HttpConnectFd final : public MethodFd
{
std::unique_ptr<MethodFd> UnderlyingFd;
std::string Buffer;
diff --git a/methods/http.h b/methods/http.h
index cae579afe..5bfcbc8a2 100644
--- a/methods/http.h
+++ b/methods/http.h
@@ -90,7 +90,7 @@ class CircleBuf
~CircleBuf();
};
-struct HttpServerState: public ServerState
+struct HttpServerState final : public ServerState
{
// This is the connection itself. Output is data FROM the server
CircleBuf In;
@@ -121,7 +121,7 @@ struct HttpServerState: public ServerState
virtual ~HttpServerState() {Close();};
};
-class HttpMethod : public BaseHttpMethod
+class HttpMethod final : public BaseHttpMethod
{
public:
virtual void SendReq(FetchItem *Itm) APT_OVERRIDE;
diff --git a/methods/rred.cc b/methods/rred.cc
index aeefea5a2..bef2e969e 100644
--- a/methods/rred.cc
+++ b/methods/rred.cc
@@ -598,7 +598,7 @@ class Patch {
};
#ifndef APT_EXCLUDE_RRED_METHOD_CODE
-class RredMethod : public aptMethod {
+class RredMethod final : public aptMethod {
private:
bool Debug;
diff --git a/methods/store.cc b/methods/store.cc
index 23d6b43d0..ed2eb3fe1 100644
--- a/methods/store.cc
+++ b/methods/store.cc
@@ -31,7 +31,7 @@
#include <apti18n.h>
/*}}}*/
-class StoreMethod : public aptMethod
+class StoreMethod final : public aptMethod
{
virtual bool Fetch(FetchItem *Itm) APT_OVERRIDE;