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/anope.h | |
parent | a6a0f6c44780c839b2269f4f29a26ecfdbd95544 (diff) |
Mark types that have no inheritors as final.
Diffstat (limited to 'include/anope.h')
-rw-r--r-- | include/anope.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/anope.h b/include/anope.h index 976c69702..ee9797627 100644 --- a/include/anope.h +++ b/include/anope.h @@ -22,7 +22,7 @@ namespace Anope * allow us to only require one type of string everywhere that can be converted * at any time to a specific type of string. */ - class CoreExport string + class CoreExport string final { private: /** @@ -312,7 +312,7 @@ namespace Anope inline const string operator+(const char *_str, const string &str) { string tmp(_str); tmp += str; return tmp; } inline const string operator+(const std::string &_str, const string &str) { string tmp(_str); tmp += str; return tmp; } - struct hash_ci + struct hash_ci final { inline size_t operator()(const string &s) const { @@ -320,7 +320,7 @@ namespace Anope } }; - struct hash_cs + struct hash_cs final { inline size_t operator()(const string &s) const { @@ -328,7 +328,7 @@ namespace Anope } }; - struct compare + struct compare final { inline bool operator()(const string &s1, const string &s2) const { @@ -628,7 +628,7 @@ public: /** A derived form of sepstream, which separates on commas */ -class commasepstream +class commasepstream final : public sepstream { public: @@ -639,7 +639,7 @@ public: /** A derived form of sepstream, which separates on spaces */ -class spacesepstream +class spacesepstream final : public sepstream { public: @@ -712,7 +712,7 @@ public: virtual ~ModuleException() noexcept = default; }; -class CoreExport ConvertException +class CoreExport ConvertException final : public CoreException { public: |