mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-06 21:19:35 +01:00
Replace std::to_string with locale-independent alternative
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user