mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Replace std::to_string with locale-independent alternative
This commit is contained in:
parent
58c72880ff
commit
d056df033a
19 changed files with 71 additions and 58 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue