[ox/std] Deprecate ox::move

This commit is contained in:
2021-12-01 02:55:24 -06:00
parent e0364925a3
commit 37664ede05
18 changed files with 36 additions and 32 deletions

View File

@@ -17,7 +17,7 @@ FileAddress::FileAddress(const FileAddress &other) noexcept {
}
FileAddress::FileAddress(FileAddress &&other) noexcept {
operator=(move(other));
operator=(std::move(other));
}
FileAddress::FileAddress(std::nullptr_t) noexcept {

View File

@@ -41,7 +41,7 @@ Result<Buffer> FileSystem::read(const FileAddress &addr) noexcept {
oxRequire(s, stat(addr));
Buffer buff(s.size);
oxReturnError(read(addr, buff.data(), buff.size()));
return ox::move(buff);
return buff;
}
Error FileSystem::read(const FileAddress &addr, std::size_t readStart, std::size_t readSize, void *buffer, std::size_t *size) noexcept {

View File

@@ -279,7 +279,7 @@ Result<Vector<String>> FileSystemTemplate<FileStore, Directory>::ls(const char *
out.emplace_back(name);
return OxError(0);
}));
return ox::move(out);
return out;
}
template<typename FileStore, typename Directory>

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 ox::move(out);
return std::move(out);
}
Error PassThroughFS::remove(const char *path, bool recursive) noexcept {