mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:27:45 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -37,7 +37,7 @@ String ClipboardHistoryModel::column_name(int column) const
|
|||
}
|
||||
}
|
||||
|
||||
static const char* bpp_for_format_resilient(String format)
|
||||
static char const* bpp_for_format_resilient(String format)
|
||||
{
|
||||
unsigned format_uint = format.to_uint().value_or(static_cast<unsigned>(Gfx::BitmapFormat::Invalid));
|
||||
// Cannot use Gfx::Bitmap::bpp_for_format here, as we have to accept invalid enum values.
|
||||
|
|
|
@ -35,7 +35,7 @@ public:
|
|||
|
||||
virtual ~ClipboardHistoryModel() override = default;
|
||||
|
||||
const ClipboardItem& item_at(int index) const { return m_history_items[index]; }
|
||||
ClipboardItem const& item_at(int index) const { return m_history_items[index]; }
|
||||
void remove_item(int index);
|
||||
|
||||
// ^GUI::Model
|
||||
|
@ -54,7 +54,7 @@ private:
|
|||
virtual int column_count(const GUI::ModelIndex&) const override { return Column::__Count; }
|
||||
|
||||
// ^GUI::Clipboard::ClipboardClient
|
||||
virtual void clipboard_content_did_change(const String&) override { add_item(GUI::Clipboard::the().fetch_data_and_type()); }
|
||||
virtual void clipboard_content_did_change(String const&) override { add_item(GUI::Clipboard::the().fetch_data_and_type()); }
|
||||
|
||||
Vector<ClipboardItem> m_history_items;
|
||||
size_t m_history_limit;
|
||||
|
|
|
@ -40,7 +40,7 @@ void KeymapStatusWindow::wm_event(GUI::WMEvent& event)
|
|||
}
|
||||
}
|
||||
|
||||
void KeymapStatusWindow::set_keymap_text(const String& keymap)
|
||||
void KeymapStatusWindow::set_keymap_text(String const& keymap)
|
||||
{
|
||||
GUI::Painter painter(*m_status_widget);
|
||||
painter.clear_rect(m_status_widget->rect(), Color::from_argb(0));
|
||||
|
|
|
@ -51,7 +51,7 @@ private:
|
|||
return;
|
||||
|
||||
pid_t child_pid;
|
||||
const char* argv[] = { "SystemMonitor", "-t", "network", nullptr };
|
||||
char const* argv[] = { "SystemMonitor", "-t", "network", nullptr };
|
||||
|
||||
if ((errno = posix_spawn(&child_pid, "/bin/SystemMonitor", nullptr, nullptr, const_cast<char**>(argv), environ))) {
|
||||
perror("posix_spawn");
|
||||
|
@ -179,7 +179,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
TRY(Core::System::unveil(nullptr, nullptr));
|
||||
|
||||
bool display_notifications = false;
|
||||
const char* name = nullptr;
|
||||
char const* name = nullptr;
|
||||
Core::ArgsParser args_parser;
|
||||
args_parser.add_option(display_notifications, "Display notifications", "display-notifications", 'd');
|
||||
args_parser.add_option(name, "Applet name used by WindowServer.ini to set the applet order", "name", 'n', "name");
|
||||
|
|
|
@ -110,7 +110,7 @@ private:
|
|||
if (event.button() != GUI::MouseButton::Primary)
|
||||
return;
|
||||
pid_t child_pid;
|
||||
const char* argv[] = { "SystemMonitor", "-t", "graphs", nullptr };
|
||||
char const* argv[] = { "SystemMonitor", "-t", "graphs", nullptr };
|
||||
if ((errno = posix_spawn(&child_pid, "/bin/SystemMonitor", nullptr, nullptr, const_cast<char**>(argv), environ))) {
|
||||
perror("posix_spawn");
|
||||
} else {
|
||||
|
@ -197,8 +197,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
TRY(Core::System::pledge("stdio recvfd sendfd proc exec rpath"));
|
||||
|
||||
const char* cpu = nullptr;
|
||||
const char* memory = nullptr;
|
||||
char const* cpu = nullptr;
|
||||
char const* memory = nullptr;
|
||||
Core::ArgsParser args_parser;
|
||||
args_parser.add_option(cpu, "Create CPU graph", "cpu", 'C', "cpu");
|
||||
args_parser.add_option(memory, "Create memory graph", "memory", 'M', "memory");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue