PlaylistGenerator: Use std::make_shared

This commit is contained in:
Jonas Kvinge 2023-04-07 22:41:10 +02:00
parent e314545f2e
commit 74bbc1f19f
1 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,8 @@
#include "config.h"
#include <memory>
#include <QObject>
#include <QString>
@ -36,6 +38,6 @@ PlaylistGeneratorPtr PlaylistGenerator::Create(const Type type) {
Q_UNUSED(type)
return PlaylistGeneratorPtr(new PlaylistQueryGenerator);
return std::make_shared<PlaylistQueryGenerator>();
}