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/sockets.h | |
parent | a6a0f6c44780c839b2269f4f29a26ecfdbd95544 (diff) |
Mark types that have no inheritors as final.
Diffstat (limited to 'include/sockets.h')
-rw-r--r-- | include/sockets.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/sockets.h b/include/sockets.h index e7311e727..b8aacc7e7 100644 --- a/include/sockets.h +++ b/include/sockets.h @@ -103,7 +103,7 @@ union CoreExport sockaddrs void ntop(int type, const void *src); }; -class CoreExport cidr +class CoreExport cidr final { sockaddrs addr; Anope::string cidr_ip; @@ -120,13 +120,13 @@ public: bool operator==(const cidr &other) const; bool operator!=(const cidr &other) const; - struct CoreExport hash + struct CoreExport hash final { size_t operator()(const cidr &s) const; }; }; -class CoreExport SocketException +class CoreExport SocketException final : public CoreException { public: @@ -339,7 +339,7 @@ class CoreExport BinarySocket : public virtual Socket { protected: - struct DataBlock + struct DataBlock final { char *orig; char *buf; |