[ox] Fix for GCC pedantry around potential null ptrs that will never happen
This commit is contained in:
5
deps/ox/src/ox/oc/write.hpp
vendored
5
deps/ox/src/ox/oc/write.hpp
vendored
@@ -122,7 +122,10 @@ class OrganicClawWriter {
|
||||
ModelHandlerInterface handler{&w};
|
||||
for (std::size_t i = 0; i < keys.size(); ++i) {
|
||||
const auto k = keys[i].c_str();
|
||||
oxReturnError(handler.field(k, val->at(k).value));
|
||||
if (k) [[likely]] {
|
||||
oxRequireM(value, val->at(k));
|
||||
oxReturnError(handler.field(k, value));
|
||||
}
|
||||
}
|
||||
value(key) = w.m_json;
|
||||
}
|
||||
|
Reference in New Issue
Block a user