diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2020-02-12 23:01:45 -0500 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2020-03-14 12:23:01 -0700 |
commit | d056df033a1e88554f7cc39dd709a87b17cb49df (patch) | |
tree | 263b622b86b99015913624e20b40fc317777c3c7 /src/test/settings_tests.cpp | |
parent | 58c72880ff70807cf622cdebf1d6273f4041bd2e (diff) |
Replace std::to_string with locale-independent alternative
Diffstat (limited to 'src/test/settings_tests.cpp')
-rw-r--r-- | src/test/settings_tests.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/settings_tests.cpp b/src/test/settings_tests.cpp index 45644834a5..10b161aa80 100644 --- a/src/test/settings_tests.cpp +++ b/src/test/settings_tests.cpp @@ -11,6 +11,7 @@ #include <boost/test/unit_test.hpp> #include <univalue.h> #include <util/strencodings.h> +#include <util/string.h> #include <vector> BOOST_FIXTURE_TEST_SUITE(settings_tests, BasicTestingSetup) @@ -114,7 +115,7 @@ BOOST_FIXTURE_TEST_CASE(Merge, MergeTestingSetup) std::vector<util::SettingsValue>& dest) { if (action == SET || action == SECTION_SET) { for (int i = 0; i < 2; ++i) { - dest.push_back(value_prefix + std::to_string(++value_suffix)); + dest.push_back(value_prefix + ToString(++value_suffix)); desc += " " + name_prefix + name + "=" + dest.back().get_str(); } } else if (action == NEGATE || action == SECTION_NEGATE) { |