[ox/oc] Fix ox::String serialization
This commit is contained in:
parent
db71c8f3e9
commit
c1338d9d87
6
deps/ox/src/ox/oc/write.cpp
vendored
6
deps/ox/src/ox/oc/write.cpp
vendored
@ -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);
|
||||
|
2
deps/ox/src/ox/oc/write.hpp
vendored
2
deps/ox/src/ox/oc/write.hpp
vendored
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user