mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
AK: Rename adopt() to adopt_ref()
This makes it more symmetrical with adopt_own() (which is used to create a NonnullOwnPtr from the result of a naked new.)
This commit is contained in:
@@ -103,7 +103,7 @@ Result<NonnullRefPtr<FileWatcher>, String> FileWatcher::watch(const String& path
|
||||
|
||||
dbgln_if(FILE_WATCHER_DEBUG, "Started watcher for file '{}'", path.characters());
|
||||
auto notifier = Notifier::construct(watch_fd, Notifier::Event::Read);
|
||||
return adopt(*new FileWatcher(move(notifier), move(path)));
|
||||
return adopt_ref(*new FileWatcher(move(notifier), move(path)));
|
||||
}
|
||||
|
||||
FileWatcher::FileWatcher(NonnullRefPtr<Notifier> notifier, const String& path)
|
||||
|
||||
Reference in New Issue
Block a user