[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

@@ -103,7 +103,7 @@ Result<Vector<String>> PassThroughFS::ls(const char *dir) noexcept {
const auto u8p = p.path().filename().u8string();
out.emplace_back(reinterpret_cast<const char*>(u8p.c_str()));
}
return std::move(out);
return out;
}
Error PassThroughFS::remove(const char *path, bool recursive) noexcept {