1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 06:43:14 +02:00

Improve the layout of types that inherit from another type.

This commit is contained in:
Sadie Powell
2024-01-23 15:28:23 +00:00
parent 398d674cf4
commit a6a0f6c447
232 changed files with 1648 additions and 798 deletions
+10 -5
View File
@@ -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;