Use std::shared_ptrfor AlbumCoverLoaderResult

Reduces memory fragmentation with Qt 6
This commit is contained in:
Jonas Kvinge
2023-04-06 23:18:10 +02:00
parent 962536bc83
commit b660287779
38 changed files with 363 additions and 294 deletions

View File

@@ -52,11 +52,11 @@ class CurrentAlbumCoverLoader : public QObject {
void LoadAlbumCover(const Song &song);
signals:
void AlbumCoverLoaded(Song song, AlbumCoverLoaderResult result);
void ThumbnailLoaded(Song song, QUrl thumbnail_uri, QImage image);
void AlbumCoverLoaded(Song song, AlbumCoverLoaderResultPtr result);
void ThumbnailLoaded(Song song, QUrl thumbnail_uri, const QImage &image);
private slots:
void TempAlbumCoverLoaded(const quint64 id, AlbumCoverLoaderResult result);
void TempAlbumCoverLoaded(const quint64 id, AlbumCoverLoaderResultPtr result);
private:
Application *app_;