diff options
author | Sadie Powell <sadie@witchery.services> | 2021-04-27 21:41:19 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-04-27 21:41:19 +0100 |
commit | 095a25d4731c7b2df73174eaedecae90aa1e610b (patch) | |
tree | 2c0c6b855cd98f75fef89279b7022554c6d674c8 /modules/commands/os_news.cpp | |
parent | c00ecc5e024251213a71673a63efe24e10d0cdbe (diff) |
Add the anope_override keyword to methods that lack it.
Diffstat (limited to 'modules/commands/os_news.cpp')
-rw-r--r-- | modules/commands/os_news.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/os_news.cpp b/modules/commands/os_news.cpp index d83e44025..f199cdad5 100644 --- a/modules/commands/os_news.cpp +++ b/modules/commands/os_news.cpp @@ -111,12 +111,12 @@ class MyNewsService : public NewsService return new MyNewsItem(); } - void AddNewsItem(NewsItem *n) + void AddNewsItem(NewsItem *n) anope_override { this->newsItems[n->type].push_back(n); } - void DelNewsItem(NewsItem *n) + void DelNewsItem(NewsItem *n) anope_override { std::vector<NewsItem *> &list = this->GetNewsList(n->type); std::vector<NewsItem *>::iterator it = std::find(list.begin(), list.end(), n); @@ -125,7 +125,7 @@ class MyNewsService : public NewsService delete n; } - std::vector<NewsItem *> &GetNewsList(NewsType t) + std::vector<NewsItem *> &GetNewsList(NewsType t) anope_override { return this->newsItems[t]; } |