[ox/std] Deprecate ox::move
This commit is contained in:
@@ -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 {
|
||||
|
2
deps/ox/src/ox/fs/filesystem/filesystem.cpp
vendored
2
deps/ox/src/ox/fs/filesystem/filesystem.cpp
vendored
@@ -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 {
|
||||
|
2
deps/ox/src/ox/fs/filesystem/filesystem.hpp
vendored
2
deps/ox/src/ox/fs/filesystem/filesystem.hpp
vendored
@@ -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>
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user