mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:27:45 +00:00
LibCore: Remove ObjectPtr in favor of RefPtr
Now that CObject is fully ref-counted, just use RefPtr everywhere! :^)
This commit is contained in:
parent
bc319d9e88
commit
d6abfbdc5a
71 changed files with 146 additions and 156 deletions
|
@ -88,7 +88,7 @@ private:
|
|||
|
||||
bool m_in_active_window { false };
|
||||
|
||||
ObjectPtr<CNotifier> m_notifier;
|
||||
RefPtr<CNotifier> m_notifier;
|
||||
|
||||
u8 m_opacity { 255 };
|
||||
bool m_needs_background_fill { true };
|
||||
|
@ -96,9 +96,9 @@ private:
|
|||
|
||||
int m_glyph_width { 0 };
|
||||
|
||||
ObjectPtr<CTimer> m_cursor_blink_timer;
|
||||
ObjectPtr<CTimer> m_visual_beep_timer;
|
||||
RefPtr<CTimer> m_cursor_blink_timer;
|
||||
RefPtr<CTimer> m_visual_beep_timer;
|
||||
RefPtr<CConfigFile> m_config;
|
||||
|
||||
ObjectPtr<GScrollBar> m_scrollbar;
|
||||
RefPtr<GScrollBar> m_scrollbar;
|
||||
};
|
||||
|
|
|
@ -88,7 +88,7 @@ static void run_command(int ptm_fd, String command)
|
|||
}
|
||||
}
|
||||
|
||||
ObjectPtr<GWindow> create_settings_window(TerminalWidget& terminal, RefPtr<CConfigFile> config)
|
||||
RefPtr<GWindow> create_settings_window(TerminalWidget& terminal, RefPtr<CConfigFile> config)
|
||||
{
|
||||
auto window = GWindow::construct();
|
||||
window->set_title("Terminal Settings");
|
||||
|
@ -170,7 +170,7 @@ int main(int argc, char** argv)
|
|||
window->set_icon(load_png("/res/icons/16x16/app-terminal.png"));
|
||||
terminal->set_should_beep(config->read_bool_entry("Window", "AudibleBeep", false));
|
||||
|
||||
ObjectPtr<GWindow> settings_window;
|
||||
RefPtr<GWindow> settings_window;
|
||||
|
||||
auto new_opacity = config->read_num_entry("Window", "Opacity", 255);
|
||||
terminal->set_opacity(new_opacity);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue