diff --git a/src/run_as_node.cpp b/src/run_as_node.cpp index 5900634..fc92a05 100644 --- a/src/run_as_node.cpp +++ b/src/run_as_node.cpp @@ -51,7 +51,7 @@ bool RunAsNode::RunNode() return true; } -bool RunAsNode::Init(std::string &version) +bool RunAsNode::Init(const std::string &version) { uint64_t baseAddr = 0; #if defined(_WIN_PLATFORM_) diff --git a/src/run_as_node.h b/src/run_as_node.h index 57e0777..6ed53a8 100644 --- a/src/run_as_node.h +++ b/src/run_as_node.h @@ -4,6 +4,6 @@ namespace RunAsNode { - bool Init(std::string &version); + bool Init(const std::string &version); bool RunNode(); } \ No newline at end of file diff --git a/src/sign.cpp b/src/sign.cpp index 11b4628..109f84e 100644 --- a/src/sign.cpp +++ b/src/sign.cpp @@ -85,7 +85,7 @@ std::string Bin2Hex(const uint8_t *ptr, size_t length) return str; } -bool Sign::Init(std::string &version) +bool Sign::Init(const std::string &version) { uint64_t HookAddress = 0; #if defined(_WIN_PLATFORM_) diff --git a/src/sign.h b/src/sign.h index 848e5a8..5306b75 100644 --- a/src/sign.h +++ b/src/sign.h @@ -5,6 +5,6 @@ namespace Sign { - bool Init(std::string &version); + bool Init(const std::string &version); std::tuple Call(const std::string_view cmd, const std::string_view src, int seq); } \ No newline at end of file