Use std::make_shared

This commit is contained in:
Jonas Kvinge
2021-06-30 16:14:58 +02:00
parent ffa2489998
commit f3a8dde5f0
6 changed files with 7 additions and 7 deletions

View File

@@ -411,7 +411,7 @@ void Transcoder::JobState::ReportError(GstMessage *msg) const {
bool Transcoder::StartJob(const Job &job) {
std::shared_ptr<JobState> state(new JobState(job, this));
std::shared_ptr<JobState> state = std::make_shared<JobState>(job, this);
emit LogLine(tr("Starting %1").arg(QDir::toNativeSeparators(job.input)));