[ox] Cleanup some const_casts

This commit is contained in:
2023-12-09 00:49:03 -06:00
parent 40a3c28fbf
commit cd0958c691
2 changed files with 3 additions and 3 deletions

View File

@@ -301,7 +301,7 @@ constexpr Error MetalClawWriter<Writer>::field(const char*, const T *val, std::s
oxReturnError(handler.template setTypeInfo<T>("List", 0, {}, static_cast<std::size_t>(len)));
// write the array
for (std::size_t i = 0; i < len; i++) {
oxReturnError(handler.field("", const_cast<const T*>(&val[i])));
oxReturnError(handler.field("", &val[i]));
}
oxReturnError(writer.finalize());
fieldSet = true;