Raw -> Smart Pointers in PPrefsDialog, musredit, qt5.

This commit is contained in:
suter_a 2023-10-24 09:30:00 +02:00
parent e376e9a2e6
commit c18ed68aa8

View File

@ -27,6 +27,8 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <memory>
#include "PChangeDefaultPathsDialog.h"
#include "PPrefsDialog.h"
@ -129,13 +131,11 @@ void PPrefsDialog::dumpRoot()
*/
void PPrefsDialog::handleDefaultPaths()
{
PChangeDefaultPathsDialog *dlg = new PChangeDefaultPathsDialog();
std::unique_ptr<PChangeDefaultPathsDialog> dlg = std::make_unique<PChangeDefaultPathsDialog>();
if (dlg->exec() == QDialog::Accepted) {
}
delete dlg;
}
//----------------------------------------------------------------------------------------------------