[ox/model] Fix storng int Error errors

This commit is contained in:
Gary Talent 2019-07-29 22:58:06 -05:00
parent ff4adaebf1
commit 2b536ff053

View File

@ -118,7 +118,7 @@ struct DescriptorType {
template<typename T>
Error model(T *io, DescriptorType *type) {
Error err = 0;
auto err = OxError(0);
io->setTypeInfo("ox::DescriptorType", 4);
err |= io->field("typeName", &type->typeName);
err |= io->field("primitiveType", &type->primitiveType);
@ -129,7 +129,7 @@ Error model(T *io, DescriptorType *type) {
template<typename T>
Error modelWrite(T *io, DescriptorField *field) {
Error err = 0;
auto err = OxError(0);
io->setTypeInfo("ox::DescriptorField", 4);
if (field->ownsType) {
err |= io->field("typeName", "");
@ -147,7 +147,7 @@ Error modelWrite(T *io, DescriptorField *field) {
template<typename T>
Error modelRead(T *io, DescriptorField *field) {
Error err = 0;
auto err = OxError(0);
auto &typeStore = io->typeStore();
io->setTypeInfo("ox::DescriptorField", 4);
err |= io->field("typeName", &field->typeName);