diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-04-01 20:58:27 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-01 21:24:45 +0100 |
commit | 086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch) | |
tree | 02b3699a66735ef806d9b46353491f18f8e4e7b4 /Userland/Applications/Run | |
parent | 0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff) | |
download | serenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip |
Everywhere: Run clang-format
Diffstat (limited to 'Userland/Applications/Run')
-rw-r--r-- | Userland/Applications/Run/RunWindow.cpp | 8 | ||||
-rw-r--r-- | Userland/Applications/Run/RunWindow.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Applications/Run/RunWindow.cpp b/Userland/Applications/Run/RunWindow.cpp index 6e680936c4..6dcc87dd48 100644 --- a/Userland/Applications/Run/RunWindow.cpp +++ b/Userland/Applications/Run/RunWindow.cpp @@ -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); diff --git a/Userland/Applications/Run/RunWindow.h b/Userland/Applications/Run/RunWindow.h index c05bccf2ef..ca19e41350 100644 --- a/Userland/Applications/Run/RunWindow.h +++ b/Userland/Applications/Run/RunWindow.h @@ -24,8 +24,8 @@ private: RunWindow(); void do_run(); - bool run_as_command(const String& run_input); - bool run_via_launch(const String& run_input); + bool run_as_command(String const& run_input); + bool run_via_launch(String const& run_input); String history_file_path(); void load_history(); |