mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
LibCore: Convert CNotifier to ObjectPtr
This commit is contained in:
parent
50a6560413
commit
d1bacb9885
17 changed files with 42 additions and 32 deletions
|
@ -344,7 +344,7 @@ void GDirectoryModel::open(const StringView& a_path)
|
|||
perror("watch_file");
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
m_notifier = make<CNotifier>(watch_fd, CNotifier::Event::Read);
|
||||
m_notifier = CNotifier::create(watch_fd, CNotifier::Event::Read);
|
||||
m_notifier->on_ready_to_read = [this] {
|
||||
update();
|
||||
char buffer[32];
|
||||
|
|
|
@ -82,7 +82,7 @@ private:
|
|||
HashMap<uid_t, String> m_user_names;
|
||||
HashMap<gid_t, String> m_group_names;
|
||||
|
||||
OwnPtr<CNotifier> m_notifier;
|
||||
ObjectPtr<CNotifier> m_notifier;
|
||||
|
||||
unsigned m_thumbnail_progress { 0 };
|
||||
unsigned m_thumbnail_progress_total { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue