From c18ed68aa899de1a041e5d4f8e833261eb7b3b2f Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Tue, 24 Oct 2023 09:30:00 +0200 Subject: [PATCH] Raw -> Smart Pointers in PPrefsDialog, musredit, qt5. --- src/musredit_qt5/musredit/PPrefsDialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/musredit_qt5/musredit/PPrefsDialog.cpp b/src/musredit_qt5/musredit/PPrefsDialog.cpp index b9342a0a..ee3745a8 100644 --- a/src/musredit_qt5/musredit/PPrefsDialog.cpp +++ b/src/musredit_qt5/musredit/PPrefsDialog.cpp @@ -27,6 +27,8 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ +#include + #include "PChangeDefaultPathsDialog.h" #include "PPrefsDialog.h" @@ -129,13 +131,11 @@ void PPrefsDialog::dumpRoot() */ void PPrefsDialog::handleDefaultPaths() { - PChangeDefaultPathsDialog *dlg = new PChangeDefaultPathsDialog(); + std::unique_ptr dlg = std::make_unique(); if (dlg->exec() == QDialog::Accepted) { } - - delete dlg; } //----------------------------------------------------------------------------------------------------