[ox] Cleanup some old style error handling

This commit is contained in:
2021-04-17 11:33:33 -05:00
parent 6664462391
commit a22823e3b4
10 changed files with 42 additions and 54 deletions

View File

@@ -199,7 +199,7 @@ template<typename T>
Result<std::unique_ptr<T>> readOC(const char *json) {
auto val = std::make_unique<T>();
oxReturnError(readOC(json, ox_strlen(json), val.get()));
return {std::move(val), OxError(0)};
return std::move(val);
}
}