diff --git a/deps/ox/src/ox/claw/read.cpp b/deps/ox/src/ox/claw/read.cpp index 01ad2b81..3d2d834a 100644 --- a/deps/ox/src/ox/claw/read.cpp +++ b/deps/ox/src/ox/claw/read.cpp @@ -72,9 +72,9 @@ Result stripClawHeader(const ox::Buffer &buff) noexcept { return stripClawHeader(buff.data(), buff.size()); } -Result readClaw(TypeStore *ts, const char *buff, std::size_t buffSz) noexcept { +Result readClaw(TypeStore &ts, const char *buff, std::size_t buffSz) noexcept { oxRequire(header, readClawHeader(buff, buffSz)); - oxRequire(t, ts->getLoad(header.typeName, header.typeVersion, header.typeParams)); + oxRequire(t, ts.getLoad(header.typeName, header.typeVersion, header.typeParams)); ModelObject obj; oxReturnError(obj.setType(t)); switch (header.fmt) { @@ -103,7 +103,7 @@ Result readClaw(TypeStore *ts, const char *buff, std::size_t buffSz return OxError(1); } -Result readClaw(TypeStore *ts, const Buffer &buff) noexcept { +Result readClaw(TypeStore &ts, const Buffer &buff) noexcept { return readClaw(ts, buff.data(), buff.size()); } diff --git a/deps/ox/src/ox/claw/read.hpp b/deps/ox/src/ox/claw/read.hpp index 13b18164..87371665 100644 --- a/deps/ox/src/ox/claw/read.hpp +++ b/deps/ox/src/ox/claw/read.hpp @@ -88,8 +88,8 @@ Result readClaw(const Buffer &buff) { return readClaw(buff.data(), buff.size()); } -Result readClaw(TypeStore *ts, const char *buff, std::size_t buffSz) noexcept; +Result readClaw(TypeStore &ts, const char *buff, std::size_t buffSz) noexcept; -Result readClaw(TypeStore *ts, const Buffer &buff) noexcept; +Result readClaw(TypeStore &ts, const Buffer &buff) noexcept; }