From 7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 4 Apr 2021 23:42:15 +0100 Subject: Fix a ton of pedantic compiler warnings. --- include/modules/cap.h | 2 +- include/modules/dns.h | 2 +- include/modules/extban.h | 2 +- include/modules/regex.h | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'include/modules') diff --git a/include/modules/cap.h b/include/modules/cap.h index 9f08826db..150393520 100644 --- a/include/modules/cap.h +++ b/include/modules/cap.h @@ -177,7 +177,7 @@ namespace Cap Unregister(); } - ~Capability() + ~Capability() override { SetActive(false); } diff --git a/include/modules/dns.h b/include/modules/dns.h index aca01b54f..33baa8284 100644 --- a/include/modules/dns.h +++ b/include/modules/dns.h @@ -188,7 +188,7 @@ namespace DNS { } - virtual ~Request() + ~Request() override { manager->RemoveRequest(this); } diff --git a/include/modules/extban.h b/include/modules/extban.h index a8f986e9e..4f0031aef 100644 --- a/include/modules/extban.h +++ b/include/modules/extban.h @@ -256,7 +256,7 @@ class ExtBan::EventListener public: /** Called when an extban is being checked. * @param user The user which the extban is being checked against. - * @param channel The channel which the extban is set on. + * @param chan The channel which the extban is set on. * @param extban The extban which is being checked against. */ virtual ModResult OnExtBanCheck(User* user, Channel* chan, ExtBan::Base* extban) = 0; diff --git a/include/modules/regex.h b/include/modules/regex.h index 6c9f659da..1ae7acd73 100644 --- a/include/modules/regex.h +++ b/include/modules/regex.h @@ -72,7 +72,7 @@ class Regex::Engine virtual PatternPtr Create(const std::string& pattern, uint8_t options = Regex::OPT_NONE) = 0; /** Compiles a regular expression from the human-writable form. - * @param The pattern to compile in the format /pattern/flags. + * @param pattern The pattern to compile in the format /pattern/flags. * @return A shared pointer to an instance of the Regex::Pattern class. */ PatternPtr CreateHuman(const std::string& pattern); @@ -157,8 +157,8 @@ class Regex::Pattern protected: /** Initializes a new instance of the Pattern class. - * @param Pattern The pattern as a string. - * @param Options The options used when matching this pattern. + * @param pattern The pattern as a string. + * @param options The options used when matching this pattern. */ Pattern(const std::string& pattern, uint8_t options) : optionflags(options) -- cgit v1.3.1-10-gc9f91