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
No known key found for this signature in database
GPG key ID: 4D8CA4BA18040906
19 changed files with 71 additions and 58 deletions

View file

@ -15,6 +15,7 @@
#include <chainparams.h>
#include <util/memory.h>
#include <util/system.h>
#include <util/string.h>
#include <memory>
@ -85,7 +86,7 @@ BOOST_AUTO_TEST_CASE(cnode_listen_port)
BOOST_CHECK(port == Params().GetDefaultPort());
// test set port
unsigned short altPort = 12345;
BOOST_CHECK(gArgs.SoftSetArg("-port", std::to_string(altPort)));
BOOST_CHECK(gArgs.SoftSetArg("-port", ToString(altPort)));
port = GetListenPort();
BOOST_CHECK(port == altPort);
}