[ox] Cleanup
This commit is contained in:
parent
90ef5866dd
commit
fa4e3c6329
13
deps/ox/src/ox/std/uuid.hpp
vendored
13
deps/ox/src/ox/std/uuid.hpp
vendored
@ -153,24 +153,23 @@ class UUID {
|
||||
UUIDStr *out,
|
||||
const Array<uint8_t, 16> &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;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user