mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37:53 +00:00
LibGUI: Remove use of copy_ref().
This commit is contained in:
@@ -149,7 +149,7 @@ GIcon GDirectoryModel::icon_for(const Entry& entry) const
|
||||
LOCKER(thumbnail_cache().lock());
|
||||
auto it = thumbnail_cache().resource().find(path);
|
||||
if (it != thumbnail_cache().resource().end()) {
|
||||
entry.thumbnail = (*it).value.copy_ref();
|
||||
entry.thumbnail = (*it).value;
|
||||
} else {
|
||||
thumbnail_cache().resource().set(path, nullptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user