Skip to content

Commit 18e750b

Browse files
committed
Code cleanup
1 parent bf7700d commit 18e750b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

httplib.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -845,12 +845,12 @@ class SSLServer : public Server {
845845
const char *client_ca_cert_file_path = nullptr,
846846
const char *client_ca_cert_dir_path = nullptr);
847847

848-
virtual ~SSLServer();
848+
~SSLServer() override;
849849

850-
virtual bool is_valid() const;
850+
bool is_valid() const override;
851851

852852
private:
853-
virtual bool process_and_close_socket(socket_t sock);
853+
bool process_and_close_socket(socket_t sock) override;
854854

855855
SSL_CTX *ctx_;
856856
std::mutex ctx_mutex_;
@@ -862,9 +862,9 @@ class SSLClient : public Client {
862862
const std::string &client_cert_path = std::string(),
863863
const std::string &client_key_path = std::string());
864864

865-
virtual ~SSLClient();
865+
~SSLClient() override;
866866

867-
virtual bool is_valid() const;
867+
bool is_valid() const override;
868868

869869
void set_ca_cert_path(const char *ca_ceert_file_path,
870870
const char *ca_cert_dir_path = nullptr);
@@ -876,12 +876,12 @@ class SSLClient : public Client {
876876
SSL_CTX *ssl_context() const noexcept;
877877

878878
private:
879-
virtual bool process_and_close_socket(
879+
bool process_and_close_socket(
880880
socket_t sock, size_t request_count,
881881
std::function<bool(Stream &strm, bool last_connection,
882882
bool &connection_close)>
883-
callback);
884-
virtual bool is_ssl() const;
883+
callback) override;
884+
bool is_ssl() const override;
885885

886886
bool verify_host(X509 *server_cert) const;
887887
bool verify_host_with_subject_alt_name(X509 *server_cert) const;
@@ -1280,7 +1280,7 @@ class SSLSocketStream : public Stream {
12801280
public:
12811281
SSLSocketStream(socket_t sock, SSL *ssl, time_t read_timeout_sec,
12821282
time_t read_timeout_usec);
1283-
virtual ~SSLSocketStream();
1283+
~SSLSocketStream() override;
12841284

12851285
bool is_readable() const override;
12861286
bool is_writable() const override;

0 commit comments

Comments
 (0)