diff options
Diffstat (limited to 'Userland/Libraries/LibPCIDB/Database.cpp')
-rw-r--r-- | Userland/Libraries/LibPCIDB/Database.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibPCIDB/Database.cpp b/Userland/Libraries/LibPCIDB/Database.cpp index 5b93cd2171..3821049d68 100644 --- a/Userland/Libraries/LibPCIDB/Database.cpp +++ b/Userland/Libraries/LibPCIDB/Database.cpp @@ -17,7 +17,7 @@ RefPtr<Database> Database::open(const String& file_name) auto file_or_error = MappedFile::map(file_name); if (file_or_error.is_error()) return nullptr; - auto res = adopt(*new Database(file_or_error.release_value())); + auto res = adopt_ref(*new Database(file_or_error.release_value())); if (res->init() != 0) return nullptr; return res; |