From 9203f40f41e4a735d379d13867d277c696fb28c5 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 3 Sep 2022 22:52:53 +0100 Subject: Fix some warnings noticed by the readability-* clang-tidy checkers. --- src/modules/m_disable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_disable.cpp') diff --git a/src/modules/m_disable.cpp b/src/modules/m_disable.cpp index 774ecb278..57f471d13 100644 --- a/src/modules/m_disable.cpp +++ b/src/modules/m_disable.cpp @@ -64,7 +64,7 @@ private: } } - void WriteLog(const char* message, ...) ATTR_PRINTF(2, 3) + void WriteLog(const char* message, ...) const ATTR_PRINTF(2, 3) { std::string buffer; VAFORMAT(buffer, message, message); @@ -127,7 +127,7 @@ public: ModResult OnNumeric(User* user, const Numeric::Numeric& numeric) override { - if (numeric.GetNumeric() != RPL_COMMANDS || numeric.GetParams().size() < 1) + if (numeric.GetNumeric() != RPL_COMMANDS || numeric.GetParams().empty()) return MOD_RES_PASSTHRU; // The numeric isn't the one we care about. if (!fakenonexistent || !IS_LOCAL(user)) -- cgit v1.3.1-10-gc9f91