mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 00:07:35 +00:00
Everywhere: Pass AK::StringView by value
This commit is contained in:
parent
ad5d217e76
commit
8b1108e485
392 changed files with 978 additions and 978 deletions
|
@ -30,7 +30,7 @@ public:
|
|||
virtual ~TerminalWidget() override;
|
||||
|
||||
void set_pty_master_fd(int fd);
|
||||
void inject_string(const StringView& string)
|
||||
void inject_string(StringView string)
|
||||
{
|
||||
m_terminal.inject_string(string);
|
||||
flush_dirty_lines();
|
||||
|
@ -59,8 +59,8 @@ public:
|
|||
void set_selection(const VT::Range& selection);
|
||||
VT::Position buffer_position_at(const Gfx::IntPoint&) const;
|
||||
|
||||
VT::Range find_next(const StringView&, const VT::Position& start = {}, bool case_sensitivity = false, bool should_wrap = false);
|
||||
VT::Range find_previous(const StringView&, const VT::Position& start = {}, bool case_sensitivity = false, bool should_wrap = false);
|
||||
VT::Range find_next(StringView, const VT::Position& start = {}, bool case_sensitivity = false, bool should_wrap = false);
|
||||
VT::Range find_previous(StringView, const VT::Position& start = {}, bool case_sensitivity = false, bool should_wrap = false);
|
||||
|
||||
void scroll_to_bottom();
|
||||
void scroll_to_row(int);
|
||||
|
@ -81,7 +81,7 @@ public:
|
|||
|
||||
const StringView color_scheme_name() const { return m_color_scheme_name; }
|
||||
|
||||
Function<void(const StringView&)> on_title_change;
|
||||
Function<void(StringView)> on_title_change;
|
||||
Function<void(const Gfx::IntSize&)> on_terminal_size_change;
|
||||
Function<void()> on_command_exit;
|
||||
|
||||
|
@ -91,7 +91,7 @@ public:
|
|||
|
||||
void set_font_and_resize_to_fit(const Gfx::Font&);
|
||||
|
||||
void set_color_scheme(const StringView&);
|
||||
void set_color_scheme(StringView);
|
||||
|
||||
private:
|
||||
TerminalWidget(int ptm_fd, bool automatic_size_policy);
|
||||
|
@ -116,7 +116,7 @@ private:
|
|||
|
||||
// ^TerminalClient
|
||||
virtual void beep() override;
|
||||
virtual void set_window_title(const StringView&) override;
|
||||
virtual void set_window_title(StringView) override;
|
||||
virtual void set_window_progress(int value, int max) override;
|
||||
virtual void terminal_did_resize(u16 columns, u16 rows) override;
|
||||
virtual void terminal_history_changed(int delta) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue