diff options
| author | 2023-01-24 23:41:50 +0000 | |
|---|---|---|
| committer | 2023-01-25 00:39:27 +0000 | |
| commit | af8effe4f0876d6fa934806745712f679bd36278 (patch) | |
| tree | b0d6de94d60dc5e116faa5e14b6029fb1c527886 /src/modules/m_showfile.cpp | |
| parent | Fix using (unsigned) long instead of (s)size_t. (diff) | |
Replace getInt/getUInt/getFloat with type safe templated functions.
Diffstat (limited to 'src/modules/m_showfile.cpp')
| -rw-r--r-- | src/modules/m_showfile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<unsigned int>(tag->getUInt("intronumeric", RPL_RULESTART, 0, 999)); - textnumeric = static_cast<unsigned int>(tag->getUInt("numeric", RPL_RULES, 0, 999)); - endnumeric = static_cast<unsigned int>(tag->getUInt("endnumeric", RPL_RULESEND, 0, 999)); + intronumeric = tag->getNum<unsigned int>("intronumeric", RPL_RULESTART, 0, 999); + textnumeric = tag->getNum<unsigned int>("numeric", RPL_RULES, 0, 999); + endnumeric = tag->getNum<unsigned int>("endnumeric", RPL_RULESEND, 0, 999); std::string smethod = tag->getString("method"); method = SF_NUMERIC; |
