[ox] Remove std::move calls that suppressed copy elision

This commit is contained in:
2021-12-01 19:55:09 -06:00
parent 37664ede05
commit 163fcf1785
6 changed files with 8 additions and 12 deletions

View File

@ -77,7 +77,7 @@ Result<String> writeClawHeader(T *t, ClawFormat fmt) noexcept {
out += tn;
}
out += ";";
return std::move(out);
return out;
}
}
@ -89,7 +89,7 @@ Result<Buffer> writeClaw(T *t, ClawFormat fmt) {
Buffer out(header.len() + data.size());
memcpy(out.data(), header.data(), header.len());
memcpy(out.data() + header.len(), data.data(), data.size());
return std::move(out);
return out;
}
}