mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:58:12 +00:00
Kernel+AK: Eliminate a couple of temporary String allocations
This commit is contained in:
parent
726c023f9e
commit
1d2f78682b
7 changed files with 10 additions and 10 deletions
|
@ -378,7 +378,7 @@ ErrorOr<NonnullOwnPtr<KString>> LocalSocket::pseudo_path(const OpenFileDescripti
|
|||
break;
|
||||
}
|
||||
|
||||
return KString::try_create(builder.to_string());
|
||||
return KString::try_create(builder.string_view());
|
||||
}
|
||||
|
||||
ErrorOr<void> LocalSocket::getsockopt(OpenFileDescription& description, int level, int option, Userspace<void*> value, Userspace<socklen_t*> value_size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue