From 512522711a1665ba572c0183351d124f57ad3761 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 30 Nov 2022 20:48:52 -0600 Subject: [PATCH] [ox/fs] Cleanup unnecessary c_str()s --- deps/ox/src/ox/fs/filesystem/passthroughfs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp b/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp index 3ec86754a..5dafc2f99 100644 --- a/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp +++ b/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp @@ -151,9 +151,9 @@ Result 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};