mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-23 17:42:42 +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] {
|
ui::execute_from_ui_thread([this, package] {
|
||||||
log("Download finished!");
|
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) {
|
m_installation->InstallationFailed.connect([this](drm::LicenseManager::InstallationException& e) {
|
||||||
onInstallationFailed(e);
|
onInstallationFailed(e);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user