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:
@@ -72,7 +72,7 @@ public:
|
||||
|
||||
ExtraCompiler::ExtraCompiler(const Project *project, const Utils::FileName &source,
|
||||
const Utils::FileNameList &targets, QObject *parent) :
|
||||
QObject(parent), d(new ExtraCompilerPrivate)
|
||||
QObject(parent), d(std::make_unique<ExtraCompilerPrivate>())
|
||||
{
|
||||
d->project = project;
|
||||
d->source = source;
|
||||
@@ -129,10 +129,7 @@ ExtraCompiler::ExtraCompiler(const Project *project, const Utils::FileName &sour
|
||||
}
|
||||
}
|
||||
|
||||
ExtraCompiler::~ExtraCompiler()
|
||||
{
|
||||
delete d;
|
||||
}
|
||||
ExtraCompiler::~ExtraCompiler() = default;
|
||||
|
||||
const Project *ExtraCompiler::project() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user