[ox/fs] Cleanup unnecessary c_str()s

This commit is contained in:
Gary Talent 2022-11-30 20:48:52 -06:00
parent 858a30ee08
commit 512522711a

View File

@ -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};