1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:27:43 +00:00

AK+Userland: Fix some compiler warnings and make variables const-ref

This fixes a few compiler warnings and makes some variables const-ref
in preparation for the next commit which changes how ByteBuffer works.
This commit is contained in:
Gunnar Beutner 2021-05-14 20:53:27 +02:00 committed by Andreas Kling
parent fbdc3b0ee2
commit f0fa51773a
7 changed files with 12 additions and 7 deletions

View file

@ -28,6 +28,10 @@ void UUID::convert_string_view_to_uuid(const StringView& uuid_string_view)
auto fourth_unit = decode_hex(uuid_string_view.substring_view(19, 4));
auto fifth_unit = decode_hex(uuid_string_view.substring_view(24, 12));
VERIFY(first_unit.value().size() == 4 && second_unit.value().size() == 2
&& third_unit.value().size() == 2 && fourth_unit.value().size() == 2
&& fifth_unit.value().size() == 6);
m_uuid_buffer.span().overwrite(0, first_unit.value().data(), first_unit.value().size());
m_uuid_buffer.span().overwrite(4, second_unit.value().data(), second_unit.value().size());
m_uuid_buffer.span().overwrite(6, third_unit.value().data(), third_unit.value().size());