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 /modules/database/db_old.cpp | |
parent | a6a0f6c44780c839b2269f4f29a26ecfdbd95544 (diff) |
Mark types that have no inheritors as final.
Diffstat (limited to 'modules/database/db_old.cpp')
-rw-r--r-- | modules/database/db_old.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/database/db_old.cpp b/modules/database/db_old.cpp index eca898b59..c6846dea8 100644 --- a/modules/database/db_old.cpp +++ b/modules/database/db_old.cpp @@ -94,7 +94,7 @@ else \ #define OLD_NEWS_OPER 1 #define OLD_NEWS_RANDOM 2 -static struct mlock_info +static struct mlock_info final { char c; uint32_t m; @@ -309,7 +309,7 @@ static char *strscpy(char *d, const char *s, size_t len) return d_orig; } -struct dbFILE +struct dbFILE final { int mode; /* 'r' for reading, 'w' for writing */ FILE *fp; /* The normal file descriptor */ @@ -1297,7 +1297,7 @@ static void LoadNews() close_db(f); } -class DBOld +class DBOld final : public Module { PrimitiveExtensibleItem<uint32_t> mlock_on, mlock_off, mlock_limit; |