mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 17:19:13 +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:
parent
fbdc3b0ee2
commit
f0fa51773a
Notes:
sideshowbarker
2024-07-18 18:02:02 +09:00
Author: https://github.com/gunnarbeutner
Commit: f0fa51773a
Pull-request: https://github.com/SerenityOS/serenity/pull/7151
Reviewed-by: https://github.com/alimpfard
7 changed files with 12 additions and 7 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue