[ox/mc] Cleanup
This commit is contained in:
parent
8d2c8df014
commit
3eec0a149d
3
deps/ox/src/ox/mc/read.hpp
vendored
3
deps/ox/src/ox/mc/read.hpp
vendored
@ -254,8 +254,7 @@ constexpr Error MetalClawReaderTemplate<Reader>::field(const char*, HashMap<Stri
|
|||||||
auto wkey = ox_malloca(keyLen + 1, char, 0);
|
auto wkey = ox_malloca(keyLen + 1, char, 0);
|
||||||
auto wkeyPtr = wkey.get();
|
auto wkeyPtr = wkey.get();
|
||||||
oxReturnError(handler.fieldCString("", &wkeyPtr, keyLen + 1));
|
oxReturnError(handler.fieldCString("", &wkeyPtr, keyLen + 1));
|
||||||
oxReturnError(handler.field("", &val.operator[](wkey.get())));
|
return handler.field("", &val[wkey.get()]);
|
||||||
return OxError(0);
|
|
||||||
};
|
};
|
||||||
for (std::size_t i = 0; i < len; ++i) {
|
for (std::size_t i = 0; i < len; ++i) {
|
||||||
oxReturnError(loopBody(handler, *val));
|
oxReturnError(loopBody(handler, *val));
|
||||||
|
Loading…
Reference in New Issue
Block a user