From e414f10a6ae47d70e4f3abe2f29e36c15fcd5211 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 15 Apr 2021 15:24:50 +0100 Subject: Clean up the ConvTo functions. - Add a default parameter to ConvToNum. - Use std::to_string for types that implement it. - Document the functions properly. --- src/modules/m_anticaps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_anticaps.cpp') diff --git a/src/modules/m_anticaps.cpp b/src/modules/m_anticaps.cpp index 57c144d37..758ed79c4 100644 --- a/src/modules/m_anticaps.cpp +++ b/src/modules/m_anticaps.cpp @@ -146,7 +146,7 @@ class AntiCapsMode : public ParamModeminlen)); out.push_back(':'); - out.append(ConvNumeric(acs->percent)); + out.append(ConvToStr(acs->percent)); } }; -- cgit v1.3.1-10-gc9f91