[ox] Cleanup some const_casts
This commit is contained in:
2
deps/ox/src/ox/mc/write.hpp
vendored
2
deps/ox/src/ox/mc/write.hpp
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user