aboutsummaryrefslogtreecommitdiff
path: root/include/modules/ldap.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-12-01 05:14:58 +0000
committerGravatar Sadie Powell2022-12-01 05:25:01 +0000
commit45e56e5ee1bdb9e169be957e21a4f7b536e417ff (patch)
tree72642028744c278ca476e656933716ac9f7357b8 /include/modules/ldap.h
parentMerge branch 'insp3' into master. (diff)
Yet more stylistic fixes.
Diffstat (limited to 'include/modules/ldap.h')
-rw-r--r--include/modules/ldap.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/include/modules/ldap.h b/include/modules/ldap.h
index f3cc15b4a..9f07f0455 100644
--- a/include/modules/ldap.h
+++ b/include/modules/ldap.h
@@ -97,13 +97,8 @@ struct LDAPResult final
std::vector<LDAPAttributes> messages;
std::string error;
- QueryType type;
- LDAPQuery id;
-
- LDAPResult()
- : type(QUERY_UNKNOWN), id(-1)
- {
- }
+ QueryType type = QUERY_UNKNOWN;
+ LDAPQuery id = -1;
size_t size() const
{
@@ -133,9 +128,11 @@ class LDAPInterface
public:
ModuleRef creator;
- LDAPInterface(Module* m) : creator(m) { }
+ LDAPInterface(Module* m)
+ : creator(m)
+ {
+ }
virtual ~LDAPInterface() = default;
-
virtual void OnResult(const LDAPResult& r) = 0;
virtual void OnError(const LDAPResult& err) = 0;
};