[ox] Remove std::move calls that suppressed copy elision
This commit is contained in:
4
deps/ox/src/ox/claw/write.hpp
vendored
4
deps/ox/src/ox/claw/write.hpp
vendored
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user