forked from qt-creator/qt-creator
QmakeProjectManager: Modernize
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-equals-default Change-Id: I7642992eee6838bb2566921de87390c1771ebcbe Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Tobias Hunger
parent
02d46e6c2c
commit
cd5066d86b
@@ -87,9 +87,7 @@ AddLibraryWizard::AddLibraryWizard(const QString &fileName, QWidget *parent) :
|
||||
addPage(m_summaryPage);
|
||||
}
|
||||
|
||||
AddLibraryWizard::~AddLibraryWizard()
|
||||
{
|
||||
}
|
||||
AddLibraryWizard::~AddLibraryWizard() = default;
|
||||
|
||||
QString AddLibraryWizard::proFile() const
|
||||
{
|
||||
@@ -114,7 +112,7 @@ LibraryTypePage::LibraryTypePage(AddLibraryWizard *parent)
|
||||
setTitle(tr("Library Type"));
|
||||
setSubTitle(tr("Choose the type of the library to link to"));
|
||||
|
||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||
auto *layout = new QVBoxLayout(this);
|
||||
|
||||
m_internalRadio = new QRadioButton(tr("Internal library"), this);
|
||||
layout->addWidget(m_internalRadio);
|
||||
@@ -221,7 +219,7 @@ void DetailsPage::initializePage()
|
||||
{
|
||||
if (m_libraryDetailsController) {
|
||||
delete m_libraryDetailsController;
|
||||
m_libraryDetailsController = 0;
|
||||
m_libraryDetailsController = nullptr;
|
||||
}
|
||||
QString title;
|
||||
QString subTitle;
|
||||
@@ -269,7 +267,7 @@ SummaryPage::SummaryPage(AddLibraryWizard *parent)
|
||||
setTitle(tr("Summary"));
|
||||
setFinalPage(true);
|
||||
|
||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||
auto *layout = new QVBoxLayout(this);
|
||||
m_summaryLabel = new QLabel(this);
|
||||
m_snippetLabel = new QLabel(this);
|
||||
m_snippetLabel->setWordWrap(true);
|
||||
|
||||
Reference in New Issue
Block a user