Use std::shared_ptrfor AlbumCoverLoaderResult
Reduces memory fragmentation with Qt 6
This commit is contained in:
@@ -258,7 +258,7 @@ class MainWindow : public QMainWindow, public PlatformInterface {
|
||||
void DeleteCover();
|
||||
void ShowCover();
|
||||
void SearchCoverAutomatically();
|
||||
void AlbumCoverLoaded(const Song &song, const AlbumCoverLoaderResult &result);
|
||||
void AlbumCoverLoaded(const Song &song, AlbumCoverLoaderResultPtr result);
|
||||
|
||||
void ScrobblingEnabledChanged(const bool value);
|
||||
void ScrobbleButtonVisibilityChanged(const bool value);
|
||||
@@ -391,7 +391,7 @@ class MainWindow : public QMainWindow, public PlatformInterface {
|
||||
|
||||
Song song_;
|
||||
Song song_playing_;
|
||||
AlbumCoverImageResult album_cover_;
|
||||
AlbumCoverImageResultPtr album_cover_;
|
||||
bool exit_;
|
||||
int exit_count_;
|
||||
bool delete_files_;
|
||||
|
||||
Reference in New Issue
Block a user