Replace use of the new operator with std::make_unique

This commit is contained in:
Martín Capello 2022-06-21 15:25:37 -03:00 committed by David Capello
parent d63c0f7e4b
commit 627c96228b

View File

@ -79,7 +79,7 @@ void AsepriteUpdate::onDownloadFinished(drm::Package& package)
{
ui::execute_from_ui_thread([this, package] {
log("Download finished!");
m_installation.reset(new drm::InstallationThread(package));
m_installation = std::make_unique<drm::InstallationThread>(package);
m_installation->InstallationFailed.connect([this](drm::LicenseManager::InstallationException& e) {
onInstallationFailed(e);
});