[ox/oc] Fix ox::String serialization

This commit is contained in:
Gary Talent 2021-05-12 21:44:34 -05:00
parent db71c8f3e9
commit c1338d9d87
2 changed files with 4 additions and 4 deletions

View File

@ -91,9 +91,9 @@ Error OrganicClawWriter::field(const char *key, bool *val) {
return OxError(0);
}
Error OrganicClawWriter::field(const char *key, String val) {
if (targetValid() && val.len()) {
value(key) = val.c_str();
Error OrganicClawWriter::field(const char *key, String *val) {
if (targetValid() && val->len()) {
value(key) = val->c_str();
}
++m_fieldIt;
return OxError(0);

View File

@ -57,7 +57,7 @@ class OrganicClawWriter {
template<std::size_t L>
Error field(const char*, BString<L> *val);
Error field(const char*, String val);
Error field(const char*, String *val);
Error field(const char*, SerStr val);