diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-23 16:46:57 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-23 16:46:57 +0200 |
commit | b91c49364df1683c7fe1191eb02b8d9c331874f6 (patch) | |
tree | a9ea5ff8e4cc8cfcfe75c279551be35793d0ffb3 /Userland/Demos/WidgetGallery/GalleryModels.h | |
parent | b3db01e20eeae632cc75df9af8666772bda67091 (diff) | |
download | serenity-b91c49364df1683c7fe1191eb02b8d9c331874f6.zip |
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.)
Diffstat (limited to 'Userland/Demos/WidgetGallery/GalleryModels.h')
-rw-r--r-- | Userland/Demos/WidgetGallery/GalleryModels.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Demos/WidgetGallery/GalleryModels.h b/Userland/Demos/WidgetGallery/GalleryModels.h index 9a29d320e9..a42153ee02 100644 --- a/Userland/Demos/WidgetGallery/GalleryModels.h +++ b/Userland/Demos/WidgetGallery/GalleryModels.h @@ -13,7 +13,7 @@ class MouseCursorModel final : public GUI::Model { public: - static NonnullRefPtr<MouseCursorModel> create() { return adopt(*new MouseCursorModel); } + static NonnullRefPtr<MouseCursorModel> create() { return adopt_ref(*new MouseCursorModel); } virtual ~MouseCursorModel() override { } enum Column { @@ -86,7 +86,7 @@ private: class FileIconsModel final : public GUI::Model { public: - static NonnullRefPtr<FileIconsModel> create() { return adopt(*new FileIconsModel); } + static NonnullRefPtr<FileIconsModel> create() { return adopt_ref(*new FileIconsModel); } virtual ~FileIconsModel() override { } enum Column { |