mirror of
https://github.com/anope/anope.git
synced 2026-07-05 02:53:12 +02:00
Mark types that have no inheritors as final.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
static Anope::hash_map<NickCore *> certmap;
|
||||
|
||||
struct CertServiceImpl
|
||||
struct CertServiceImpl final
|
||||
: CertService
|
||||
{
|
||||
CertServiceImpl(Module *o) : CertService(o) { }
|
||||
@@ -28,7 +28,7 @@ struct CertServiceImpl
|
||||
}
|
||||
};
|
||||
|
||||
struct NSCertListImpl
|
||||
struct NSCertListImpl final
|
||||
: NSCertList
|
||||
{
|
||||
Serialize::Reference<NickCore> nc;
|
||||
@@ -121,7 +121,7 @@ public:
|
||||
nc->Shrink<NSCertList>("certificates");
|
||||
}
|
||||
|
||||
struct ExtensibleItem
|
||||
struct ExtensibleItem final
|
||||
: ::ExtensibleItem<NSCertListImpl>
|
||||
{
|
||||
ExtensibleItem(Module *m, const Anope::string &ename) : ::ExtensibleItem<NSCertListImpl>(m, ename) { }
|
||||
@@ -163,7 +163,7 @@ public:
|
||||
};
|
||||
};
|
||||
|
||||
class CommandNSCert
|
||||
class CommandNSCert final
|
||||
: public Command
|
||||
{
|
||||
private:
|
||||
@@ -342,7 +342,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class NSCert
|
||||
class NSCert final
|
||||
: public Module
|
||||
{
|
||||
CommandNSCert commandnscert;
|
||||
|
||||
Reference in New Issue
Block a user