mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 08:17:34 +00:00
AK: Rename RetainPtr => RefPtr and Retained => NonnullRefPtr.
This commit is contained in:
parent
77b9fa89dd
commit
90b1354688
188 changed files with 562 additions and 562 deletions
|
@ -19,7 +19,7 @@
|
|||
byte Terminal::Attribute::default_foreground_color = 7;
|
||||
byte Terminal::Attribute::default_background_color = 0;
|
||||
|
||||
Terminal::Terminal(int ptm_fd, RetainPtr<CConfigFile> config)
|
||||
Terminal::Terminal(int ptm_fd, RefPtr<CConfigFile> config)
|
||||
: m_ptm_fd(ptm_fd)
|
||||
, m_notifier(ptm_fd, CNotifier::Read)
|
||||
, m_config(config)
|
||||
|
|
|
@ -14,7 +14,7 @@ class Font;
|
|||
|
||||
class Terminal final : public GFrame {
|
||||
public:
|
||||
explicit Terminal(int ptm_fd, RetainPtr<CConfigFile> config);
|
||||
explicit Terminal(int ptm_fd, RefPtr<CConfigFile> config);
|
||||
virtual ~Terminal() override;
|
||||
|
||||
void create_window();
|
||||
|
@ -30,7 +30,7 @@ public:
|
|||
bool should_beep() { return m_should_beep; }
|
||||
void set_should_beep(bool sb) { m_should_beep = sb; };
|
||||
|
||||
RetainPtr<CConfigFile> config() const { return m_config; }
|
||||
RefPtr<CConfigFile> config() const { return m_config; }
|
||||
|
||||
private:
|
||||
typedef Vector<unsigned, 4> ParamVector;
|
||||
|
@ -205,7 +205,7 @@ private:
|
|||
|
||||
CTimer m_cursor_blink_timer;
|
||||
CTimer m_visual_beep_timer;
|
||||
RetainPtr<CConfigFile> m_config;
|
||||
RefPtr<CConfigFile> m_config;
|
||||
|
||||
byte m_last_char { 0 };
|
||||
};
|
||||
|
|
|
@ -81,7 +81,7 @@ static void make_shell(int ptm_fd)
|
|||
}
|
||||
}
|
||||
|
||||
GWindow* create_settings_window(Terminal& terminal, RetainPtr<CConfigFile> config)
|
||||
GWindow* create_settings_window(Terminal& terminal, RefPtr<CConfigFile> config)
|
||||
{
|
||||
auto* window = new GWindow;
|
||||
window->set_title("Terminal Settings");
|
||||
|
@ -149,7 +149,7 @@ int main(int argc, char** argv)
|
|||
window->set_double_buffering_enabled(false);
|
||||
window->set_should_exit_event_loop_on_close(true);
|
||||
|
||||
RetainPtr<CConfigFile> config = CConfigFile::get_for_app("Terminal");
|
||||
RefPtr<CConfigFile> config = CConfigFile::get_for_app("Terminal");
|
||||
Terminal terminal(ptm_fd, config);
|
||||
window->set_has_alpha_channel(true);
|
||||
window->set_main_widget(&terminal);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue