mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Fix issues when calling std::move(const&)
This commit is contained in:
parent
c73c8d53fe
commit
faad673716
7 changed files with 25 additions and 21 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue