aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoin-cli.cpp
diff options
context:
space:
mode:
authorCalvin Kim <calvin@kcalvinalvin.info>2020-05-18 17:14:10 +0900
committerCalvin Kim <calvin@kcalvinalvin.info>2020-05-22 01:40:31 +0900
commitc57f03ce1741b38af448bec7b22ab9f8ac21f067 (patch)
treefc53ee2ad75995ae01f998dca70574754ee91f7b /src/bitcoin-cli.cpp
parentdc5333d31f280e09bb1e8cdacfbe842f4ab9e69b (diff)
downloadbitcoin-c57f03ce1741b38af448bec7b22ab9f8ac21f067.tar.xz
refactor: Replace const char* to std::string
Some functions should be returning std::string instead of const char*. This commit changes that.
Diffstat (limited to 'src/bitcoin-cli.cpp')
-rw-r--r--src/bitcoin-cli.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp
index cdaabd6fab..9bd1959a99 100644
--- a/src/bitcoin-cli.cpp
+++ b/src/bitcoin-cli.cpp
@@ -20,6 +20,7 @@
#include <functional>
#include <memory>
#include <stdio.h>
+#include <string>
#include <tuple>
#include <event2/buffer.h>
@@ -157,7 +158,7 @@ struct HTTPReply
std::string body;
};
-static const char *http_errorstring(int code)
+static std::string http_errorstring(int code)
{
switch(code) {
#if LIBEVENT_VERSION_NUMBER >= 0x02010300