Raw -> Smart Pointers in PPrefsDialog, musredit, qt5.
This commit is contained in:
parent
e376e9a2e6
commit
c18ed68aa8
@ -27,6 +27,8 @@
|
|||||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
#include "PChangeDefaultPathsDialog.h"
|
#include "PChangeDefaultPathsDialog.h"
|
||||||
#include "PPrefsDialog.h"
|
#include "PPrefsDialog.h"
|
||||||
|
|
||||||
@ -129,13 +131,11 @@ void PPrefsDialog::dumpRoot()
|
|||||||
*/
|
*/
|
||||||
void PPrefsDialog::handleDefaultPaths()
|
void PPrefsDialog::handleDefaultPaths()
|
||||||
{
|
{
|
||||||
PChangeDefaultPathsDialog *dlg = new PChangeDefaultPathsDialog();
|
std::unique_ptr<PChangeDefaultPathsDialog> dlg = std::make_unique<PChangeDefaultPathsDialog>();
|
||||||
|
|
||||||
if (dlg->exec() == QDialog::Accepted) {
|
if (dlg->exec() == QDialog::Accepted) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
delete dlg;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user