mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-02 18:46:46 +01:00
PlaylistGenerator: Use std::make_shared
This commit is contained in:
parent
e314545f2e
commit
74bbc1f19f
@ -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>();
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user