Replace std::to_string with locale-independent alternative

This commit is contained in:
Ben Woosley
2020-02-12 23:01:45 -05:00
parent 58c72880ff
commit d056df033a
19 changed files with 71 additions and 58 deletions

View File

@@ -489,7 +489,7 @@ std::string RPCHelpMan::ToString() const
if (i == 0) ret += "\nArguments:\n";
// Push named argument name and description
sections.m_sections.emplace_back(std::to_string(i + 1) + ". " + arg.m_name, arg.ToDescriptionString());
sections.m_sections.emplace_back(::ToString(i + 1) + ". " + arg.m_name, arg.ToDescriptionString());
sections.m_max_pad = std::max(sections.m_max_pad, sections.m_sections.back().m_left.size());
// Recursively push nested args