mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Replace std::to_string with locale-independent alternative
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user