aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2020-02-12 23:01:45 -0500
committerBen Woosley <ben.woosley@gmail.com>2020-03-14 12:23:01 -0700
commitd056df033a1e88554f7cc39dd709a87b17cb49df (patch)
tree263b622b86b99015913624e20b40fc317777c3c7 /src/qt
parent58c72880ff70807cf622cdebf1d6273f4041bd2e (diff)
downloadbitcoin-d056df033a1e88554f7cc39dd709a87b17cb49df.tar.xz
Replace std::to_string with locale-independent alternative
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/optionsmodel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/optionsmodel.cpp b/src/qt/optionsmodel.cpp
index 977076c4c2..58a7591c95 100644
--- a/src/qt/optionsmodel.cpp
+++ b/src/qt/optionsmodel.cpp
@@ -17,6 +17,7 @@
#include <net.h>
#include <netbase.h>
#include <txdb.h> // for -dbcache defaults
+#include <util/string.h>
#include <QDebug>
#include <QSettings>
@@ -241,7 +242,7 @@ void OptionsModel::SetPruneEnabled(bool prune, bool force)
QSettings settings;
settings.setValue("bPrune", prune);
const int64_t prune_target_mib = PruneGBtoMiB(settings.value("nPruneSize").toInt());
- std::string prune_val = prune ? std::to_string(prune_target_mib) : "0";
+ std::string prune_val = prune ? ToString(prune_target_mib) : "0";
if (force) {
m_node.forceSetArg("-prune", prune_val);
return;