[ox] Change macro names to comply with broader conventions
This commit is contained in:
@ -92,9 +92,9 @@ template<typename F>
|
||||
Error PassThroughFS::ls(StringViewCR dir, F cb) const noexcept {
|
||||
std::error_code ec;
|
||||
const auto di = std::filesystem::directory_iterator(m_path / stripSlash(dir), ec);
|
||||
oxReturnError(ox::Error(static_cast<ox::ErrorCode>(ec.value()), "PassThroughFS: ls failed"));
|
||||
OX_RETURN_ERROR(ox::Error(static_cast<ox::ErrorCode>(ec.value()), "PassThroughFS: ls failed"));
|
||||
for (auto &p : di) {
|
||||
oxReturnError(cb(p.path().filename().c_str(), 0));
|
||||
OX_RETURN_ERROR(cb(p.path().filename().c_str(), 0));
|
||||
}
|
||||
return ox::Error(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user