mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Userland: Remove erroneous String -> char* -> StringView conversions
These were accidental (or leftover) uses of String::characters() to construct StringViews through its StringView(char const*) constructor. Since this constructor is due to be removed, this will no longer work. Plus this prevents strlen from being run on these strings unnecessarily.
This commit is contained in:
@@ -45,7 +45,7 @@ struct ArgvList {
|
||||
|
||||
ErrorOr<pid_t> spawn()
|
||||
{
|
||||
auto pid = TRY(System::posix_spawn(m_path.characters(), nullptr, nullptr, const_cast<char**>(get().data()), environ));
|
||||
auto pid = TRY(System::posix_spawn(m_path.view(), nullptr, nullptr, const_cast<char**>(get().data()), environ));
|
||||
#ifdef __serenity__
|
||||
TRY(System::disown(pid));
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user