From af8effe4f0876d6fa934806745712f679bd36278 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 24 Jan 2023 23:41:50 +0000 Subject: Replace getInt/getUInt/getFloat with type safe templated functions. --- src/modules/m_hidemode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_hidemode.cpp') diff --git a/src/modules/m_hidemode.cpp b/src/modules/m_hidemode.cpp index c01060580..d858b82e5 100644 --- a/src/modules/m_hidemode.cpp +++ b/src/modules/m_hidemode.cpp @@ -27,11 +27,11 @@ namespace { class Settings final { - typedef insp::flat_map RanksToSeeMap; + typedef insp::flat_map RanksToSeeMap; RanksToSeeMap rankstosee; public: - unsigned int GetRequiredRank(const ModeHandler& mh) const + ModeHandler::Rank GetRequiredRank(const ModeHandler& mh) const { RanksToSeeMap::const_iterator it = rankstosee.find(mh.name); if (it != rankstosee.end()) @@ -49,7 +49,7 @@ public: if (modename.empty()) throw ModuleException(mod, " is empty at " + tag->source.str()); - unsigned long rank = tag->getUInt("rank", 0); + ModeHandler::Rank rank = tag->getNum("rank", 0); if (!rank) throw ModuleException(mod, " must be greater than 0 at " + tag->source.str()); -- cgit v1.3.1-10-gc9f91