missing const

This commit is contained in:
simplxs 2024-07-01 04:58:30 +08:00
parent 848b2643ed
commit c39acea3fb
No known key found for this signature in database
GPG Key ID: 1A3833A46D84A08C
4 changed files with 4 additions and 4 deletions

View File

@ -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_)

View File

@ -4,6 +4,6 @@
namespace RunAsNode
{
bool Init(std::string &version);
bool Init(const std::string &version);
bool RunNode();
}

View File

@ -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_)

View File

@ -5,6 +5,6 @@
namespace Sign
{
bool Init(std::string &version);
bool Init(const std::string &version);
std::tuple<std::string, std::string, std::string> Call(const std::string_view cmd, const std::string_view src, int seq);
}