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/commands/os_news.cpp | |
| parent | a6a0f6c44780c839b2269f4f29a26ecfdbd95544 (diff) | |
Mark types that have no inheritors as final.
Diffstat (limited to 'modules/commands/os_news.cpp')
| -rw-r--r-- | modules/commands/os_news.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/commands/os_news.cpp b/modules/commands/os_news.cpp index e0c48de59..66f4a5026 100644 --- a/modules/commands/os_news.cpp +++ b/modules/commands/os_news.cpp @@ -64,7 +64,7 @@ struct NewsMessages msgarray[] = { } }; -struct MyNewsItem +struct MyNewsItem final : NewsItem { void Serialize(Serialize::Data &data) const override @@ -99,7 +99,7 @@ struct MyNewsItem } }; -class MyNewsService +class MyNewsService final : public NewsService { std::vector<NewsItem *> newsItems[3]; @@ -299,7 +299,7 @@ public: bool OnHelp(CommandSource &source, const Anope::string &subcommand) override = 0; }; -class CommandOSLogonNews +class CommandOSLogonNews final : public NewsBase { public: @@ -327,7 +327,7 @@ public: } }; -class CommandOSOperNews +class CommandOSOperNews final : public NewsBase { public: @@ -355,7 +355,7 @@ public: } }; -class CommandOSRandomNews +class CommandOSRandomNews final : public NewsBase { public: @@ -382,7 +382,7 @@ public: static unsigned cur_rand_news = 0; -class OSNews +class OSNews final : public Module { MyNewsService newsservice; |
