diff options
author | Jack Lloyd <[email protected]> | 2019-05-09 19:31:28 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-05-09 19:31:28 -0400 |
commit | 42dc03125548cd6e688936eb88b6d57522e713ad (patch) | |
tree | 72092736cbc5805afa0644bda2c9215412ca4355 /src/cli | |
parent | 87172d3bf58b2b3b6575087c42e05f801789e025 (diff) |
Mark some classes as final
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/argparse.h | 4 | ||||
-rw-r--r-- | src/cli/cli_exceptions.h | 8 | ||||
-rw-r--r-- | src/cli/tls_client.cpp | 2 | ||||
-rw-r--r-- | src/cli/tls_http_server.cpp | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/src/cli/argparse.h b/src/cli/argparse.h index bd8c50689..2d940f32d 100644 --- a/src/cli/argparse.h +++ b/src/cli/argparse.h @@ -16,7 +16,7 @@ namespace Botan_CLI { -class Argument_Parser +class Argument_Parser final { public: Argument_Parser(const std::string& spec, @@ -206,7 +206,7 @@ Argument_Parser::Argument_Parser(const std::string& spec, const std::vector<std::string>& extra_flags, const std::vector<std::string>& extra_opts) { - class CLI_Error_Invalid_Spec : public CLI_Error + class CLI_Error_Invalid_Spec final : public CLI_Error { public: explicit CLI_Error_Invalid_Spec(const std::string& bad_spec) diff --git a/src/cli/cli_exceptions.h b/src/cli/cli_exceptions.h index 38459b8dd..c88d17027 100644 --- a/src/cli/cli_exceptions.h +++ b/src/cli/cli_exceptions.h @@ -15,23 +15,23 @@ class CLI_Error : public std::runtime_error explicit CLI_Error(const std::string& s) : std::runtime_error(s) {} }; -class CLI_IO_Error : public CLI_Error +class CLI_IO_Error final : public CLI_Error { public: CLI_IO_Error(const std::string& op, const std::string& who) : CLI_Error("Error " + op + " " + who) {} }; -class CLI_Usage_Error : public CLI_Error +class CLI_Usage_Error final : public CLI_Error { public: explicit CLI_Usage_Error(const std::string& what) : CLI_Error(what) {} }; /* Thrown eg when a requested feature was compiled out of the library - or is not available, eg hashing with + or is not available, eg hashing with MD2 */ -class CLI_Error_Unsupported : public CLI_Error +class CLI_Error_Unsupported final : public CLI_Error { public: diff --git a/src/cli/tls_client.cpp b/src/cli/tls_client.cpp index 32ae4cea5..f2fc40210 100644 --- a/src/cli/tls_client.cpp +++ b/src/cli/tls_client.cpp @@ -31,7 +31,7 @@ namespace Botan_CLI { -class CLI_Policy : public Botan::TLS::Policy +class CLI_Policy final : public Botan::TLS::Policy { public: diff --git a/src/cli/tls_http_server.cpp b/src/cli/tls_http_server.cpp index b6ee28201..98a51ce83 100644 --- a/src/cli/tls_http_server.cpp +++ b/src/cli/tls_http_server.cpp @@ -62,7 +62,7 @@ inline void log_exception(const char* where, const std::exception& e) * This is an incomplete and highly buggy HTTP request parser. It is just * barely sufficient to handle a GET request sent by a browser. */ -class HTTP_Parser +class HTTP_Parser final { public: class Request |