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/Utilities/paste.cpp | |
parent | 0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff) | |
download | serenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip |
Everywhere: Run clang-format
Diffstat (limited to 'Userland/Utilities/paste.cpp')
-rw-r--r-- | Userland/Utilities/paste.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Utilities/paste.cpp b/Userland/Utilities/paste.cpp index 28e03453a2..910dc34a52 100644 --- a/Userland/Utilities/paste.cpp +++ b/Userland/Utilities/paste.cpp @@ -18,7 +18,7 @@ #include <sys/wait.h> #include <unistd.h> -static void spawn_command(const Vector<const char*>& command, const ByteBuffer& data, const char* state) +static void spawn_command(Vector<char const*> const& command, ByteBuffer const& data, char const* state) { auto pipefd = MUST(Core::System::pipe2(0)); pid_t pid = MUST(Core::System::fork()); @@ -53,7 +53,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) bool print_type = false; bool no_newline = false; bool watch = false; - Vector<const char*> watch_command; + Vector<char const*> watch_command; Core::ArgsParser args_parser; args_parser.set_general_help("Paste from the clipboard to stdout."); @@ -70,7 +70,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) if (watch) { watch_command.append(nullptr); - clipboard.on_change = [&](const String&) { + clipboard.on_change = [&](String const&) { // Technically there's a race here... auto data_and_type = clipboard.fetch_data_and_type(); if (data_and_type.mime_type.is_null()) { |