[ox/fs] Cleanup unnecessary c_str()s
This commit is contained in:
parent
858a30ee08
commit
512522711a
@ -151,9 +151,9 @@ Result<FileStat> PassThroughFS::stat(const char *path) const noexcept {
|
||||
const auto p = m_path / stripSlash(path);
|
||||
const FileType type = std::filesystem::is_directory(p, ec) ?
|
||||
FileType::Directory : FileType::NormalFile;
|
||||
oxTracef("ox::fs::PassThroughFS::stat", "{} {}", ec.message().c_str(), path);
|
||||
oxTracef("ox::fs::PassThroughFS::stat", "{} {}", ec.message(), path);
|
||||
const uint64_t size = type == FileType::Directory ? 0 : std::filesystem::file_size(p, ec);
|
||||
oxTracef("ox::fs::PassThroughFS::stat", "{} {}", ec.message().c_str(), path);
|
||||
oxTracef("ox::fs::PassThroughFS::stat", "{} {}", ec.message(), path);
|
||||
oxTracef("ox::fs::PassThroughFS::stat::size", "{} {}", path, size);
|
||||
oxReturnError(OxError(ec.value()));
|
||||
return FileStat{0, 0, size, type};
|
||||
|
Loading…
Reference in New Issue
Block a user