Skip to content

Commit

Permalink
DlgCoverArtFullSize: copy fetched cover by value
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Schürmann <[email protected]>
  • Loading branch information
ronso0 and daschuer committed Nov 16, 2023
1 parent cd1e4e1 commit 973d012
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/library/dlgcoverartfullsize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ void DlgCoverArtFullSize::init(TrackPointer pTrack) {
slotLoadTrack(pTrack);
}

void DlgCoverArtFullSize::initFetchedCoverArt(const QPixmap& pixmap) {
m_pixmap = pixmap;
void DlgCoverArtFullSize::initFetchedCoverArt(QPixmap pixmap) {
m_pixmap = std::move(pixmap);

// The real size will be calculated later by adjustImageAndDialogSize().
resize(100, 100);
Expand Down
2 changes: 1 addition & 1 deletion src/library/dlgcoverartfullsize.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DlgCoverArtFullSize
~DlgCoverArtFullSize() override = default;

void init(TrackPointer pTrack);
void initFetchedCoverArt(const QPixmap& fetchedCoverArtBytes);
void initFetchedCoverArt(QPixmap pixmap);
void mousePressEvent(QMouseEvent* event) override;
void mouseReleaseEvent(QMouseEvent* ) override;
void mouseMoveEvent(QMouseEvent* ) override;
Expand Down

0 comments on commit 973d012

Please sign in to comment.