diff options
author | Sadie Powell <sadie@witchery.services> | 2024-01-23 13:54:16 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-01-23 16:53:06 +0000 |
commit | 72acef4e159df5dcdb93b3c13b2f9d2e5e4c21a9 (patch) | |
tree | fc0a965612b45478e3b6f1566641df12790a818d /include/modules.h | |
parent | a6a0f6c44780c839b2269f4f29a26ecfdbd95544 (diff) |
Mark types that have no inheritors as final.
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/modules.h b/include/modules.h index de8d560fe..3fdcef674 100644 --- a/include/modules.h +++ b/include/modules.h @@ -162,7 +162,7 @@ enum }; typedef unsigned short ModType; -struct ModuleVersionC +struct ModuleVersionC final { int version_major, version_minor, version_patch; }; @@ -170,7 +170,7 @@ struct ModuleVersionC /** Returned by Module::GetVersion, used to see what version of Anope * a module is compiled against. */ -class ModuleVersion +class ModuleVersion final { private: int version_major; @@ -196,7 +196,7 @@ public: int GetPatch() const; }; -class CoreExport NotImplementedException +class CoreExport NotImplementedException final : public CoreException { }; @@ -1113,7 +1113,7 @@ enum Implementation /** Used to manage modules. */ -class CoreExport ModuleManager +class CoreExport ModuleManager final { public: /** Event handler hooks. |