diff --git a/deps/ox/src/ox/std/uuid.hpp b/deps/ox/src/ox/std/uuid.hpp index db743d6e..e4bafcb9 100644 --- a/deps/ox/src/ox/std/uuid.hpp +++ b/deps/ox/src/ox/std/uuid.hpp @@ -153,24 +153,23 @@ class UUID { UUIDStr *out, const Array &value, std::size_t cnt, - unsigned valueI) { + unsigned &valueI) { for (auto i = 0u; i < cnt; ++i) { const auto v = value[valueI]; const auto h = detail::toHex(v); oxIgnoreError(out->append(h.c_str(), h.len())); ++valueI; } - return valueI; }; - valueI = printChars(&out, m_value, 4, valueI); + printChars(&out, m_value, 4, valueI); out += "-"; - valueI = printChars(&out, m_value, 2, valueI); + printChars(&out, m_value, 2, valueI); out += "-"; - valueI = printChars(&out, m_value, 2, valueI); + printChars(&out, m_value, 2, valueI); out += "-"; - valueI = printChars(&out, m_value, 2, valueI); + printChars(&out, m_value, 2, valueI); out += "-"; - valueI = printChars(&out, m_value, 6, valueI); + printChars(&out, m_value, 6, valueI); return out; } };