PlaylistGenerator: Use std::make_shared
This commit is contained in:
@@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
@@ -36,6 +38,6 @@ PlaylistGeneratorPtr PlaylistGenerator::Create(const Type type) {
|
|||||||
|
|
||||||
Q_UNUSED(type)
|
Q_UNUSED(type)
|
||||||
|
|
||||||
return PlaylistGeneratorPtr(new PlaylistQueryGenerator);
|
return std::make_shared<PlaylistQueryGenerator>();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user