From fa4e3c6329578fd8acea17c0cd6a966132701670 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 30 May 2023 20:50:47 -0500 Subject: [PATCH] [ox] Cleanup --- deps/ox/src/ox/std/uuid.hpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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; } };