diff --git a/deps/ox/src/ox/mc/read.hpp b/deps/ox/src/ox/mc/read.hpp index 650b6d13..a3038f43 100644 --- a/deps/ox/src/ox/mc/read.hpp +++ b/deps/ox/src/ox/mc/read.hpp @@ -73,7 +73,7 @@ class MetalClawReader { Error field(const char*, UnionView val) noexcept; template - Error field(const char*, const BString *val) noexcept; + Error field(const char*, BString *val) noexcept; Error field(const char*, SerStr val) noexcept; @@ -157,7 +157,7 @@ Error MetalClawReader::field(const char*, UnionView val) noexcept { } template -Error MetalClawReader::field(const char *name, const BString *val) noexcept { +Error MetalClawReader::field(const char *name, BString *val) noexcept { return field(name, SerStr(val->data(), val->cap())); } diff --git a/deps/ox/src/ox/mc/write.cpp b/deps/ox/src/ox/mc/write.cpp index ac975ee5..4dc61619 100644 --- a/deps/ox/src/ox/mc/write.cpp +++ b/deps/ox/src/ox/mc/write.cpp @@ -28,40 +28,40 @@ MetalClawWriter::~MetalClawWriter() noexcept { } } -Error MetalClawWriter::field(const char*, const int8_t *val) noexcept { +Error MetalClawWriter::field(const char*, int8_t *val) noexcept { return appendInteger(*val); } -Error MetalClawWriter::field(const char*, const int16_t *val) noexcept { +Error MetalClawWriter::field(const char*, int16_t *val) noexcept { return appendInteger(*val); } -Error MetalClawWriter::field(const char*, const int32_t *val) noexcept { +Error MetalClawWriter::field(const char*, int32_t *val) noexcept { return appendInteger(*val); } -Error MetalClawWriter::field(const char*, const int64_t *val) noexcept { +Error MetalClawWriter::field(const char*, int64_t *val) noexcept { return appendInteger(*val); } -Error MetalClawWriter::field(const char*, const uint8_t *val) noexcept { +Error MetalClawWriter::field(const char*, uint8_t *val) noexcept { return appendInteger(*val); } -Error MetalClawWriter::field(const char*, const uint16_t *val) noexcept { +Error MetalClawWriter::field(const char*, uint16_t *val) noexcept { return appendInteger(*val); } -Error MetalClawWriter::field(const char*, const uint32_t *val) noexcept { +Error MetalClawWriter::field(const char*, uint32_t *val) noexcept { return appendInteger(*val); } -Error MetalClawWriter::field(const char*, const uint64_t *val) noexcept { +Error MetalClawWriter::field(const char*, uint64_t *val) noexcept { return appendInteger(*val); } -Error MetalClawWriter::field(const char*, const bool *val) noexcept { +Error MetalClawWriter::field(const char*, bool *val) noexcept { if (m_unionIdx == -1 || m_unionIdx == m_field) { oxReturnError(m_fieldPresence.set(m_field, *val)); } diff --git a/deps/ox/src/ox/mc/write.hpp b/deps/ox/src/ox/mc/write.hpp index 03844988..df75eb24 100644 --- a/deps/ox/src/ox/mc/write.hpp +++ b/deps/ox/src/ox/mc/write.hpp @@ -42,17 +42,17 @@ class MetalClawWriter { ~MetalClawWriter() noexcept; - Error field(const char*, const int8_t *val) noexcept; - Error field(const char*, const int16_t *val) noexcept; - Error field(const char*, const int32_t *val) noexcept; - Error field(const char*, const int64_t *val) noexcept; + Error field(const char*, int8_t *val) noexcept; + Error field(const char*, int16_t *val) noexcept; + Error field(const char*, int32_t *val) noexcept; + Error field(const char*, int64_t *val) noexcept; - Error field(const char*, const uint8_t *val) noexcept; - Error field(const char*, const uint16_t *val) noexcept; - Error field(const char*, const uint32_t *val) noexcept; - Error field(const char*, const uint64_t *val) noexcept; + Error field(const char*, uint8_t *val) noexcept; + Error field(const char*, uint16_t *val) noexcept; + Error field(const char*, uint32_t *val) noexcept; + Error field(const char*, uint64_t *val) noexcept; - Error field(const char*, const bool *val) noexcept; + Error field(const char*, bool *val) noexcept; template Error field(const char*, T *val, std::size_t len) noexcept; diff --git a/deps/ox/src/ox/oc/write.cpp b/deps/ox/src/ox/oc/write.cpp index 6fa68a10..65d566d2 100644 --- a/deps/ox/src/ox/oc/write.cpp +++ b/deps/ox/src/ox/oc/write.cpp @@ -18,7 +18,7 @@ OrganicClawWriter::OrganicClawWriter(Json::Value json, int unionIdx) noexcept: m_unionIdx(unionIdx) { } -Error OrganicClawWriter::field(const char *key, const int8_t *val) noexcept { +Error OrganicClawWriter::field(const char *key, int8_t *val) noexcept { if (*val) { value(key) = *val; } @@ -26,7 +26,7 @@ Error OrganicClawWriter::field(const char *key, const int8_t *val) noexcept { return OxError(0); } -Error OrganicClawWriter::field(const char *key, const int16_t *val) noexcept { +Error OrganicClawWriter::field(const char *key, int16_t *val) noexcept { if (*val) { value(key) = *val; } @@ -34,7 +34,7 @@ Error OrganicClawWriter::field(const char *key, const int16_t *val) noexcept { return OxError(0); } -Error OrganicClawWriter::field(const char *key, const int32_t *val) noexcept { +Error OrganicClawWriter::field(const char *key, int32_t *val) noexcept { if (*val) { value(key) = *val; } @@ -42,7 +42,7 @@ Error OrganicClawWriter::field(const char *key, const int32_t *val) noexcept { return OxError(0); } -Error OrganicClawWriter::field(const char *key, const int64_t *val) noexcept { +Error OrganicClawWriter::field(const char *key, int64_t *val) noexcept { if (*val) { value(key) = *val; } @@ -51,7 +51,7 @@ Error OrganicClawWriter::field(const char *key, const int64_t *val) noexcept { } -Error OrganicClawWriter::field(const char *key, const uint8_t *val) noexcept { +Error OrganicClawWriter::field(const char *key, uint8_t *val) noexcept { if (*val) { value(key) = *val; } @@ -59,7 +59,7 @@ Error OrganicClawWriter::field(const char *key, const uint8_t *val) noexcept { return OxError(0); } -Error OrganicClawWriter::field(const char *key, const uint16_t *val) noexcept { +Error OrganicClawWriter::field(const char *key, uint16_t *val) noexcept { if (targetValid() && *val) { value(key) = *val; } @@ -67,7 +67,7 @@ Error OrganicClawWriter::field(const char *key, const uint16_t *val) noexcept { return OxError(0); } -Error OrganicClawWriter::field(const char *key, const uint32_t *val) noexcept { +Error OrganicClawWriter::field(const char *key, uint32_t *val) noexcept { if (targetValid() && *val) { value(key) = *val; } @@ -75,7 +75,7 @@ Error OrganicClawWriter::field(const char *key, const uint32_t *val) noexcept { return OxError(0); } -Error OrganicClawWriter::field(const char *key, const uint64_t *val) noexcept { +Error OrganicClawWriter::field(const char *key, uint64_t *val) noexcept { if (targetValid() && *val) { value(key) = *val; } @@ -83,7 +83,7 @@ Error OrganicClawWriter::field(const char *key, const uint64_t *val) noexcept { return OxError(0); } -Error OrganicClawWriter::field(const char *key, const bool *val) noexcept { +Error OrganicClawWriter::field(const char *key, bool *val) noexcept { if (targetValid() && *val) { value(key) = *val; } @@ -91,7 +91,7 @@ Error OrganicClawWriter::field(const char *key, const bool *val) noexcept { return OxError(0); } -Error OrganicClawWriter::field(const char *key, const String *val) noexcept { +Error OrganicClawWriter::field(const char *key, String *val) noexcept { if (targetValid() && val->len()) { value(key) = val->c_str(); } diff --git a/deps/ox/src/ox/oc/write.hpp b/deps/ox/src/ox/oc/write.hpp index da743d3d..dbdd5678 100644 --- a/deps/ox/src/ox/oc/write.hpp +++ b/deps/ox/src/ox/oc/write.hpp @@ -35,17 +35,17 @@ class OrganicClawWriter { explicit OrganicClawWriter(Json::Value json, int unionIdx = -1) noexcept; - Error field(const char*, const int8_t *val) noexcept; - Error field(const char*, const int16_t *val) noexcept; - Error field(const char*, const int32_t *val) noexcept; - Error field(const char*, const int64_t *val) noexcept; + Error field(const char*, int8_t *val) noexcept; + Error field(const char*, int16_t *val) noexcept; + Error field(const char*, int32_t *val) noexcept; + Error field(const char*, int64_t *val) noexcept; - Error field(const char*, const uint8_t *val) noexcept; - Error field(const char*, const uint16_t *val) noexcept; - Error field(const char*, const uint32_t *val) noexcept; - Error field(const char*, const uint64_t *val) noexcept; + Error field(const char*, uint8_t *val) noexcept; + Error field(const char*, uint16_t *val) noexcept; + Error field(const char*, uint32_t *val) noexcept; + Error field(const char*, uint64_t *val) noexcept; - Error field(const char*, const bool *val) noexcept; + Error field(const char*, bool *val) noexcept; template Error field(const char*, T *val, std::size_t len) noexcept; @@ -54,12 +54,12 @@ class OrganicClawWriter { Error field(const char*, UnionView val) noexcept; template - Error field(const char*, const HashMap *val) noexcept; + Error field(const char*, HashMap *val) noexcept; template - Error field(const char*, const BString *val) noexcept; + Error field(const char*, BString *val) noexcept; - Error field(const char*, const String *val) noexcept; + Error field(const char*, String *val) noexcept; Error field(const char*, SerStr val) noexcept; @@ -99,7 +99,7 @@ Error OrganicClawWriter::field(const char *key, T *val, std::size_t len) noexcep } template -Error OrganicClawWriter::field(const char *key, const BString *val) noexcept { +Error OrganicClawWriter::field(const char *key, BString *val) noexcept { return field(key, SerStr(val->data(), val->cap())); } @@ -132,7 +132,7 @@ Error OrganicClawWriter::field(const char *key, UnionView val) noexcept { } template -Error OrganicClawWriter::field(const char *key, const HashMap *val) noexcept { +Error OrganicClawWriter::field(const char *key, HashMap *val) noexcept { if (targetValid()) { const auto &keys = val->keys(); OrganicClawWriter w;