summaryrefslogtreecommitdiff
path: root/modules/commands/ns_cert.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-01-23 15:28:23 +0000
committerSadie Powell <sadie@witchery.services>2024-01-23 15:28:23 +0000
commita6a0f6c44780c839b2269f4f29a26ecfdbd95544 (patch)
treed4d1fded5c14350eb003a665ca8de500a0440cea /modules/commands/ns_cert.cpp
parent398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff)
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/commands/ns_cert.cpp')
-rw-r--r--modules/commands/ns_cert.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/modules/commands/ns_cert.cpp b/modules/commands/ns_cert.cpp
index 12dc2ede9..8c874ad81 100644
--- a/modules/commands/ns_cert.cpp
+++ b/modules/commands/ns_cert.cpp
@@ -14,7 +14,8 @@
static Anope::hash_map<NickCore *> certmap;
-struct CertServiceImpl : CertService
+struct CertServiceImpl
+ : CertService
{
CertServiceImpl(Module *o) : CertService(o) { }
@@ -27,7 +28,8 @@ struct CertServiceImpl : CertService
}
};
-struct NSCertListImpl : NSCertList
+struct NSCertListImpl
+ : NSCertList
{
Serialize::Reference<NickCore> nc;
std::vector<Anope::string> certs;
@@ -119,7 +121,8 @@ public:
nc->Shrink<NSCertList>("certificates");
}
- struct ExtensibleItem : ::ExtensibleItem<NSCertListImpl>
+ struct ExtensibleItem
+ : ::ExtensibleItem<NSCertListImpl>
{
ExtensibleItem(Module *m, const Anope::string &ename) : ::ExtensibleItem<NSCertListImpl>(m, ename) { }
@@ -160,7 +163,8 @@ public:
};
};
-class CommandNSCert : public Command
+class CommandNSCert
+ : public Command
{
private:
void DoAdd(CommandSource &source, NickCore *nc, Anope::string certfp)
@@ -338,7 +342,8 @@ public:
}
};
-class NSCert : public Module
+class NSCert
+ : public Module
{
CommandNSCert commandnscert;
NSCertListImpl::ExtensibleItem certs;