aboutsummaryrefslogtreecommitdiff
path: root/src/script/script.cpp
diff options
context:
space:
mode:
authorCalvin Kim <[email protected]>2020-05-18 17:14:10 +0900
committerCalvin Kim <[email protected]>2020-05-22 01:40:31 +0900
commitc57f03ce1741b38af448bec7b22ab9f8ac21f067 (patch)
treefc53ee2ad75995ae01f998dca70574754ee91f7b /src/script/script.cpp
parentMerge #18938: tests: Fill fuzzing coverage gaps for functions in consensus/va... (diff)
downloaddiscoin-c57f03ce1741b38af448bec7b22ab9f8ac21f067.tar.xz
discoin-c57f03ce1741b38af448bec7b22ab9f8ac21f067.zip
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.cpp')
-rw-r--r--src/script/script.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/script/script.cpp b/src/script/script.cpp
index ae0de1d24..92c6fe778 100644
--- a/src/script/script.cpp
+++ b/src/script/script.cpp
@@ -7,7 +7,9 @@
#include <util/strencodings.h>
-const char* GetOpName(opcodetype opcode)
+#include <string>
+
+std::string GetOpName(opcodetype opcode)
{
switch (opcode)
{