Commit ae180170 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use unique_ptr

parent 03b8ec6b
Pipeline #86876 passed with stage
in 3 minutes and 44 seconds
......@@ -27,10 +27,7 @@ Job::Job(JobPrivate &dd)
{
}
Job::~Job()
{
delete d_ptr;
}
Job::~Job() = default;
Session *Job::session() const
{
......
......@@ -44,7 +44,7 @@ protected:
explicit Job(Session *session);
explicit Job(JobPrivate &dd);
JobPrivate *const d_ptr;
std::unique_ptr<JobPrivate> const d_ptr;
};
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment