diff options
| author | 2021-12-20 20:00:03 +0000 | |
|---|---|---|
| committer | 2021-12-20 20:19:40 +0000 | |
| commit | 421e8c8c793740aaf34feff761716c1c51d8f04e (patch) | |
| tree | b3bf0e3e8c3b7fd2beeefbe89fff8f25b12f2846 /include/modules/ldap.h | |
| parent | Deduplicate xline adding code in the dnsbl module. (diff) | |
Add the final keyword to all remaining classes that can have it.
Diffstat (limited to 'include/modules/ldap.h')
| -rw-r--r-- | include/modules/ldap.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/modules/ldap.h b/include/modules/ldap.h index ce3f750a9..760cc4ec2 100644 --- a/include/modules/ldap.h +++ b/include/modules/ldap.h @@ -20,7 +20,8 @@ typedef int LDAPQuery; -class LDAPException : public ModuleException +class LDAPException final + : public ModuleException { public: LDAPException(const std::string& reason) : ModuleException(reason) { } @@ -28,7 +29,7 @@ class LDAPException : public ModuleException virtual ~LDAPException() noexcept = default; }; -struct LDAPModification +struct LDAPModification final { enum LDAPOperation { @@ -44,7 +45,8 @@ struct LDAPModification typedef std::vector<LDAPModification> LDAPMods; -struct LDAPAttributes : public std::map<std::string, std::vector<std::string> > +struct LDAPAttributes final + : public std::map<std::string, std::vector<std::string> > { size_t size(const std::string& attr) const { @@ -88,7 +90,7 @@ enum QueryType QUERY_COMPARE }; -struct LDAPResult +struct LDAPResult final { std::vector<LDAPAttributes> messages; std::string error; @@ -136,7 +138,8 @@ class LDAPInterface virtual void OnError(const LDAPResult& err) = 0; }; -class LDAPProvider : public DataProvider +class LDAPProvider + : public DataProvider { public: LDAPProvider(Module* Creator, const std::string& Name) |
