From 72acef4e159df5dcdb93b3c13b2f9d2e5e4c21a9 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 23 Jan 2024 13:54:16 +0000 Subject: Mark types that have no inheritors as final. --- modules/commands/os_news.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/commands/os_news.cpp') 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 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; -- cgit