mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Use make_intrusive/make_shared for smart pointer construction.
This commit is contained in:
@@ -214,7 +214,7 @@ PackagesWindow::PackagesWindow(Window* parent, const InstallerP& installer)
|
||||
{
|
||||
init(parent, true);
|
||||
// add installer
|
||||
merge(installable_packages, intrusive(new DownloadableInstaller(installer)));
|
||||
merge(installable_packages, make_intrusive<DownloadableInstaller>(installer));
|
||||
FOR_EACH(p, installable_packages) p->determineStatus();
|
||||
// mark all packages in the installer for installation
|
||||
FOR_EACH(ip, installable_packages) {
|
||||
@@ -353,7 +353,7 @@ void PackagesWindow::onOk(wxCommandEvent& ev) {
|
||||
os.Write(*is);
|
||||
os.Close();
|
||||
// open installer
|
||||
ip->installer->installer = intrusive(new Installer());
|
||||
ip->installer->installer = make_intrusive<Installer>();
|
||||
ip->installer->installer->open(ip->installer->installer_file);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user