forked from qt-creator/qt-creator
ProjectExplorer: Modernize even more
Use unique_ptr for all *Private classes, except for those in singletons. Change-Id: Ib56c31ddedc6e9cf321f15de1f1e697a27ad4089 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -606,7 +606,7 @@ public:
|
||||
//
|
||||
|
||||
ProjectWindow::ProjectWindow()
|
||||
: d(new ProjectWindowPrivate(this))
|
||||
: d(std::make_unique<ProjectWindowPrivate>(this))
|
||||
{
|
||||
setBackgroundRole(QPalette::Base);
|
||||
|
||||
@@ -615,10 +615,7 @@ ProjectWindow::ProjectWindow()
|
||||
setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
}
|
||||
|
||||
ProjectWindow::~ProjectWindow()
|
||||
{
|
||||
delete d;
|
||||
}
|
||||
ProjectWindow::~ProjectWindow() = default;
|
||||
|
||||
QSize SelectorDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user