UI: Use std::unique_ptr for ui variables
Most ui variables were using std::unique_ptr, but not all. Went through all of the UI code to find where they were manually deleted.
This commit is contained in:
parent
b6b696fd89
commit
7b418d5be3
11 changed files with 28 additions and 66 deletions
|
|
@ -86,10 +86,7 @@ AutoConfigStartPage::AutoConfigStartPage(QWidget *parent)
|
|||
}
|
||||
}
|
||||
|
||||
AutoConfigStartPage::~AutoConfigStartPage()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
AutoConfigStartPage::~AutoConfigStartPage() {}
|
||||
|
||||
int AutoConfigStartPage::nextId() const
|
||||
{
|
||||
|
|
@ -191,10 +188,7 @@ AutoConfigVideoPage::AutoConfigVideoPage(QWidget *parent)
|
|||
ui->canvasRes->setCurrentIndex(0);
|
||||
}
|
||||
|
||||
AutoConfigVideoPage::~AutoConfigVideoPage()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
AutoConfigVideoPage::~AutoConfigVideoPage() {}
|
||||
|
||||
int AutoConfigVideoPage::nextId() const
|
||||
{
|
||||
|
|
@ -316,10 +310,7 @@ AutoConfigStreamPage::AutoConfigStreamPage(QWidget *parent)
|
|||
SLOT(UpdateCompleted()));
|
||||
}
|
||||
|
||||
AutoConfigStreamPage::~AutoConfigStreamPage()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
AutoConfigStreamPage::~AutoConfigStreamPage() {}
|
||||
|
||||
bool AutoConfigStreamPage::isComplete() const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue