diff --git a/deps/ox/src/ox/claw/write.hpp b/deps/ox/src/ox/claw/write.hpp index 421d76ba..e1df4ef8 100644 --- a/deps/ox/src/ox/claw/write.hpp +++ b/deps/ox/src/ox/claw/write.hpp @@ -76,15 +76,15 @@ template ox::Error writeClawHeader(Writer_c auto &writer, const T *t, ClawFormat fmt) noexcept { switch (fmt) { case ClawFormat::Metal: - oxReturnError(write(&writer, "M2;")); + oxReturnError(write(writer, "M2;")); break; case ClawFormat::Organic: - oxReturnError(write(&writer, "O1;")); + oxReturnError(write(writer, "O1;")); break; default: return OxError(1); } - oxReturnError(write(&writer, detail::getTypeName(t))); + oxReturnError(write(writer, detail::getTypeName(t))); oxReturnError(writer.put(';')); const auto tn = detail::getTypeVersion(t); if (tn > -1) { diff --git a/deps/ox/src/ox/std/stringview.hpp b/deps/ox/src/ox/std/stringview.hpp index 02fda82b..69f5cc16 100644 --- a/deps/ox/src/ox/std/stringview.hpp +++ b/deps/ox/src/ox/std/stringview.hpp @@ -341,8 +341,8 @@ constexpr ox::Vector split(CRStringView str, CRStringVi return out; } -constexpr auto write(Writer_c auto *writer, ox::CRStringView sv) noexcept { - return writer->write(sv.data(), sv.bytes()); +constexpr auto write(Writer_c auto &writer, ox::CRStringView sv) noexcept { + return writer.write(sv.data(), sv.bytes()); } #ifdef OX_USE_STDLIB