diff --git a/src/library/dlgcoverartfullsize.cpp b/src/library/dlgcoverartfullsize.cpp index 119e815a24d4..267fd38c18dd 100644 --- a/src/library/dlgcoverartfullsize.cpp +++ b/src/library/dlgcoverartfullsize.cpp @@ -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); diff --git a/src/library/dlgcoverartfullsize.h b/src/library/dlgcoverartfullsize.h index 10ea631cc9ea..55e844223f0f 100644 --- a/src/library/dlgcoverartfullsize.h +++ b/src/library/dlgcoverartfullsize.h @@ -24,7 +24,7 @@ class DlgCoverArtFullSize ~DlgCoverArtFullSize() override = default; void init(TrackPointer pTrack); - void initFetchedCoverArt(const QPixmap& fetchedCoverArtBytes); + void initFetchedCoverArt(const QPixmap& pixmap); void mousePressEvent(QMouseEvent* event) override; void mouseReleaseEvent(QMouseEvent* ) override; void mouseMoveEvent(QMouseEvent* ) override;