From dec5875aca7a2e0c281388db2f25d195ad9b2a3d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 4 Oct 2021 17:07:51 +0100 Subject: Apply the final keyword to all module classes where appropriate. --- src/modules/m_haproxy.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/modules/m_haproxy.cpp') diff --git a/src/modules/m_haproxy.cpp b/src/modules/m_haproxy.cpp index 02b80ac50..83635394d 100644 --- a/src/modules/m_haproxy.cpp +++ b/src/modules/m_haproxy.cpp @@ -92,7 +92,7 @@ enum HAProxyCommand HPC_PROXY = 0x01 }; -struct HAProxyHeader +struct HAProxyHeader final { // The signature used to identify the HAProxy protocol. uint8_t signature[PP2_SIGNATURE_LENGTH]; @@ -107,7 +107,8 @@ struct HAProxyHeader uint16_t length; }; -class HAProxyHookProvider : public IOHookProvider +class HAProxyHookProvider final + : public IOHookProvider { private: UserCertificateAPI sslapi; @@ -130,7 +131,8 @@ class HAProxyHookProvider : public IOHookProvider // The signature for a HAProxy PROXY protocol header. static const char proxy_signature[13] = "\x0D\x0A\x0D\x0A\x00\x0D\x0A\x51\x55\x49\x54\x0A"; -class HAProxyHook : public IOHookMiddle +class HAProxyHook final + : public IOHookMiddle { private: // The length of the address section. -- cgit v1.3.1-10-gc9f91