mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibGUI: Remove use of copy_ref().
This commit is contained in:
parent
b0372883ff
commit
992272761c
Notes:
sideshowbarker
2024-07-19 13:19:49 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/992272761cd
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);
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ GIcon::GIcon(const GIconImpl& impl)
|
|||
}
|
||||
|
||||
GIcon::GIcon(const GIcon& other)
|
||||
: m_impl(other.m_impl.copy_ref())
|
||||
: m_impl(other.m_impl)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,8 @@ public:
|
|||
|
||||
GIcon& operator=(const GIcon& other)
|
||||
{
|
||||
m_impl = other.m_impl.copy_ref();
|
||||
if (this != &other)
|
||||
m_impl = other.m_impl;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue