mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Use make_intrusive/make_shared for smart pointer construction.
This commit is contained in:
@@ -228,7 +228,7 @@ void PackageUpdateList::initItems() {
|
||||
ti.setIcon(load_resource_image(_("installer_package")));
|
||||
if (!p->description->icon_url.empty()) {
|
||||
// download icon
|
||||
thumbnail_thread.request(intrusive(new PackageIconRequest(this,&ti)));
|
||||
thumbnail_thread.request(make_intrusive<PackageIconRequest>(this,&ti));
|
||||
}
|
||||
} else if (ti.position_type == TreeItem::TYPE_LOCALE) { // locale folder
|
||||
ti.setIcon(load_resource_image(_("installer_locales")));
|
||||
|
||||
Reference in New Issue
Block a user