diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-11 00:55:02 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-11 01:27:46 +0100 |
commit | 8b1108e4858f797c9216dc8ae4a3918ad50c73b4 (patch) | |
tree | ca64ba25aa735d25013d76c6d83570496c742014 /AK/UUID.cpp | |
parent | ad5d217e760c7fb73ffc0c4c827d767d6be8ec80 (diff) | |
download | serenity-8b1108e4858f797c9216dc8ae4a3918ad50c73b4.zip |
Everywhere: Pass AK::StringView by value
Diffstat (limited to 'AK/UUID.cpp')
-rw-r--r-- | AK/UUID.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/UUID.cpp b/AK/UUID.cpp index cc87d7adca..835da053b4 100644 --- a/AK/UUID.cpp +++ b/AK/UUID.cpp @@ -16,7 +16,7 @@ UUID::UUID(Array<u8, 16> uuid_buffer) uuid_buffer.span().copy_to(m_uuid_buffer); } -void UUID::convert_string_view_to_uuid(const StringView& uuid_string_view) +void UUID::convert_string_view_to_uuid(StringView uuid_string_view) { VERIFY(uuid_string_view.length() == 36); auto first_unit = decode_hex(uuid_string_view.substring_view(0, 8)); @@ -36,7 +36,7 @@ void UUID::convert_string_view_to_uuid(const StringView& uuid_string_view) m_uuid_buffer.span().overwrite(10, fifth_unit.value().data(), fifth_unit.value().size()); } -UUID::UUID(const StringView& uuid_string_view) +UUID::UUID(StringView uuid_string_view) { convert_string_view_to_uuid(uuid_string_view); } |