diff options
author | MacroFake <falke.marco@gmail.com> | 2022-08-19 11:38:56 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-08-20 09:32:53 +0200 |
commit | faad673716cfbad1e715f1bdf8ac00938a055aea (patch) | |
tree | fe1134e201b198a4ae2ee1483e0ac13b6a4ccbfa /src/script | |
parent | c73c8d53fe27956faacb3e8ca0e94adf071de6ec (diff) |
Fix issues when calling std::move(const&)
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/descriptor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/descriptor.cpp b/src/script/descriptor.cpp index 434e106dad..93f6ec243c 100644 --- a/src/script/descriptor.cpp +++ b/src/script/descriptor.cpp @@ -572,7 +572,7 @@ public: if (pos++) ret += ","; std::string tmp; if (!scriptarg->ToStringHelper(arg, tmp, type, cache)) return false; - ret += std::move(tmp); + ret += tmp; } return true; } @@ -596,7 +596,7 @@ public: tmp = pubkey->ToString(); break; } - ret += std::move(tmp); + ret += tmp; } std::string subscript; if (!ToStringSubScriptHelper(arg, subscript, type, cache)) return false; @@ -912,7 +912,7 @@ protected: } std::string tmp; if (!m_subdescriptor_args[pos]->ToStringHelper(arg, tmp, type, cache)) return false; - ret += std::move(tmp); + ret += tmp; while (!path.empty() && path.back()) { if (path.size() > 1) ret += '}'; path.pop_back(); |