aboutsummaryrefslogtreecommitdiff
path: root/src/script/script.h
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/script/script.h
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/script/script.h')
-rw-r--r--src/script/script.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/script.h b/src/script/script.h
index 773ffbb985..dab8035fcd 100644
--- a/src/script/script.h
+++ b/src/script/script.h
@@ -193,7 +193,7 @@ enum opcodetype
// Maximum value that an opcode can be
static const unsigned int MAX_OPCODE = OP_NOP10;
-const char* GetOpName(opcodetype opcode);
+std::string GetOpName(opcodetype opcode);
class scriptnum_error : public std::runtime_error
{