Use std::make_unique

This commit is contained in:
Jonas Kvinge
2021-06-21 15:40:25 +02:00
parent 99ba2c2e8b
commit ed09627fdb
21 changed files with 52 additions and 30 deletions

View File

@@ -556,7 +556,7 @@ void OrganizeDialog::OrganizeFinished(const QStringList &files_with_errors, cons
if (files_with_errors.isEmpty()) return;
error_dialog_.reset(new OrganizeErrorDialog);
error_dialog_ = std::make_unique<OrganizeErrorDialog>();
error_dialog_->Show(OrganizeErrorDialog::Type_Copy, files_with_errors, log);
}