CGeneratePropertyNamesDialog: Make use of in-class initializers where applicable

This commit is contained in:
Lioncash
2020-06-28 03:21:07 -04:00
parent 69f8ff1200
commit 963b6ccd08
2 changed files with 10 additions and 14 deletions

View File

@@ -10,10 +10,8 @@
CGeneratePropertyNamesDialog::CGeneratePropertyNamesDialog(QWidget* pParent)
: QDialog(pParent)
, mpUI( new Ui::CGeneratePropertyNamesDialog )
, mFutureWatcher( this )
, mRunningNameGeneration( false )
, mCanceledNameGeneration( false )
, mpUI(std::make_unique<Ui::CGeneratePropertyNamesDialog>())
, mFutureWatcher(this)
{
mpUI->setupUi(this);
mNotifier.SetProgressBar( mpUI->ProgressBar );
@@ -41,10 +39,7 @@ CGeneratePropertyNamesDialog::CGeneratePropertyNamesDialog(QWidget* pParent)
QtConcurrent::run(&mGenerator, &CPropertyNameGenerator::Warmup);
}
CGeneratePropertyNamesDialog::~CGeneratePropertyNamesDialog()
{
delete mpUI;
}
CGeneratePropertyNamesDialog::~CGeneratePropertyNamesDialog() = default;
/** Add a property to the ID pool */
void CGeneratePropertyNamesDialog::AddToIDPool(IProperty* pProperty)