mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 18:00:26 +00:00
Replace use of the new operator with std::make_unique
This commit is contained in:
parent
d63c0f7e4b
commit
627c96228b
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user