mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:14:58 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue