[ox/oc] Remove setTypeInfo invocation from OC write
This commit is contained in:
parent
d8a13a0933
commit
77bc18129b
1
deps/ox/src/ox/oc/write.hpp
vendored
1
deps/ox/src/ox/oc/write.hpp
vendored
@ -149,7 +149,6 @@ Error OrganicClawWriter::field(const char *key, HashMap<String, T> *val) noexcep
|
||||
template<typename T>
|
||||
Result<Buffer> writeOC(T *val) noexcept {
|
||||
OrganicClawWriter writer;
|
||||
writer.template setTypeInfo<T>();
|
||||
oxReturnError(model(&writer, val));
|
||||
Json::StreamWriterBuilder jsonBuilder;
|
||||
const auto str = Json::writeString(jsonBuilder, writer.m_json);
|
||||
|
Loading…
Reference in New Issue
Block a user