aboutsummaryrefslogtreecommitdiff
path: root/include/modules/ldap.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-12-20 20:00:03 +0000
committerGravatar Sadie Powell2021-12-20 20:19:40 +0000
commit421e8c8c793740aaf34feff761716c1c51d8f04e (patch)
treeb3bf0e3e8c3b7fd2beeefbe89fff8f25b12f2846 /include/modules/ldap.h
parentDeduplicate 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.h13
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)