1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

Kernel+AK: Eliminate a couple of temporary String allocations

This commit is contained in:
Daniel Bertalan 2021-12-30 13:43:45 +01:00 committed by Andreas Kling
parent 726c023f9e
commit 1d2f78682b
7 changed files with 10 additions and 10 deletions

View file

@ -497,7 +497,7 @@ ErrorOr<NonnullOwnPtr<KString>> IPv4Socket::pseudo_path(const OpenFileDescriptio
VERIFY_NOT_REACHED();
}
return KString::try_create(builder.to_string());
return KString::try_create(builder.string_view());
}
ErrorOr<void> IPv4Socket::setsockopt(int level, int option, Userspace<const void*> user_value, socklen_t user_value_size)