mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 17:15:08 +00:00
LibGUI: Remove use of copy_ref().
This commit is contained in:
parent
b0372883ff
commit
992272761c
3 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue