configuration: Use std::make_unique instead of operator new for ui
This commit is contained in:
parent
e2d77ebac2
commit
e7364a0165
13 changed files with 15 additions and 14 deletions
|
@ -77,7 +77,7 @@ QString GetProfileUsernameFromUser(QWidget* parent, const QString& description_t
|
|||
} // Anonymous namespace
|
||||
|
||||
ConfigureProfileManager::ConfigureProfileManager(const Core::System& system_, QWidget* parent)
|
||||
: QWidget(parent), ui(new Ui::ConfigureProfileManager),
|
||||
: QWidget(parent), ui{std::make_unique<Ui::ConfigureProfileManager>()},
|
||||
profile_manager(std::make_unique<Service::Account::ProfileManager>()), system{system_} {
|
||||
ui->setupUi(this);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue