diff options
| author | 2021-04-15 15:24:50 +0100 | |
|---|---|---|
| committer | 2021-04-15 15:35:57 +0100 | |
| commit | e414f10a6ae47d70e4f3abe2f29e36c15fcd5211 (patch) | |
| tree | f0a2184d401cb11dae322b995b1dcc5b21ba47af /src/modules/m_anticaps.cpp | |
| parent | Add an initializer_list constructor to the flat types. (diff) | |
Clean up the ConvTo functions.
- Add a default parameter to ConvToNum.
- Use std::to_string for types that implement it.
- Document the functions properly.
Diffstat (limited to 'src/modules/m_anticaps.cpp')
| -rw-r--r-- | src/modules/m_anticaps.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 ParamMode<AntiCapsMode, SimpleExtItem<AntiCapsSettin out.push_back(':'); out.append(ConvToStr(acs->minlen)); out.push_back(':'); - out.append(ConvNumeric(acs->percent)); + out.append(ConvToStr<uint16_t>(acs->percent)); } }; |
