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_showfile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_showfile.cpp') diff --git a/src/modules/m_showfile.cpp b/src/modules/m_showfile.cpp index 4fee8b8e6..e4241105b 100644 --- a/src/modules/m_showfile.cpp +++ b/src/modules/m_showfile.cpp @@ -84,9 +84,9 @@ public: { introtext = tag->getString("introtext", "Showing " + name); endtext = tag->getString("endtext", "End of " + name); - intronumeric = static_cast(tag->getUInt("intronumeric", RPL_RULESTART, 0, 999)); - textnumeric = static_cast(tag->getUInt("numeric", RPL_RULES, 0, 999)); - endnumeric = static_cast(tag->getUInt("endnumeric", RPL_RULESEND, 0, 999)); + intronumeric = tag->getNum("intronumeric", RPL_RULESTART, 0, 999); + textnumeric = tag->getNum("numeric", RPL_RULES, 0, 999); + endnumeric = tag->getNum("endnumeric", RPL_RULESEND, 0, 999); std::string smethod = tag->getString("method"); method = SF_NUMERIC; -- cgit v1.3.1-10-gc9f91