[ox/mc] Cleanup

This commit is contained in:
Gary Talent 2023-11-13 22:59:11 -06:00
parent 8d2c8df014
commit 3eec0a149d

View File

@ -254,8 +254,7 @@ constexpr Error MetalClawReaderTemplate<Reader>::field(const char*, HashMap<Stri
auto wkey = ox_malloca(keyLen + 1, char, 0);
auto wkeyPtr = wkey.get();
oxReturnError(handler.fieldCString("", &wkeyPtr, keyLen + 1));
oxReturnError(handler.field("", &val.operator[](wkey.get())));
return OxError(0);
return handler.field("", &val[wkey.get()]);
};
for (std::size_t i = 0; i < len; ++i) {
oxReturnError(loopBody(handler, *val));