mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -107,11 +107,11 @@ void RunWindow::do_run()
|
|||
show();
|
||||
}
|
||||
|
||||
bool RunWindow::run_as_command(const String& run_input)
|
||||
bool RunWindow::run_as_command(String const& run_input)
|
||||
{
|
||||
pid_t child_pid;
|
||||
const char* shell_executable = "/bin/Shell"; // TODO query and use the user's preferred shell.
|
||||
const char* argv[] = { shell_executable, "-c", run_input.characters(), nullptr };
|
||||
char const* shell_executable = "/bin/Shell"; // TODO query and use the user's preferred shell.
|
||||
char const* argv[] = { shell_executable, "-c", run_input.characters(), nullptr };
|
||||
|
||||
if ((errno = posix_spawn(&child_pid, shell_executable, nullptr, nullptr, const_cast<char**>(argv), environ))) {
|
||||
perror("posix_spawn");
|
||||
|
@ -136,7 +136,7 @@ bool RunWindow::run_as_command(const String& run_input)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool RunWindow::run_via_launch(const String& run_input)
|
||||
bool RunWindow::run_via_launch(String const& run_input)
|
||||
{
|
||||
auto url = URL::create_with_url_or_path(run_input);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue