X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fkthumb.cpp;fp=src%2Fkthumb.cpp;h=ed979d390e4bab5622807489e7fc3ca20505d1d1;hb=466ea658cfea6deb980dbc88cba17474c182422c;hp=63b41efb2841388d25a75554c4ebb505bee9a953;hpb=db3694392bf3dcba334d6bb1b8923afe61e5dc09;p=kdenlive diff --git a/src/kthumb.cpp b/src/kthumb.cpp index 63b41efb..ed979d39 100644 --- a/src/kthumb.cpp +++ b/src/kthumb.cpp @@ -100,7 +100,7 @@ void KThumb::updateClipUrl(KUrl url, const QString &hash) } //static -QPixmap KThumb::getImage(KUrl url, int width, int height) +QPixmap KThumb::getImage(const KUrl& url, int width, int height) { if (url.isEmpty()) return QPixmap(); return getImage(url, 0, width, height); @@ -141,7 +141,7 @@ QImage KThumb::extractImage(int frame, int width, int height) } //static -QPixmap KThumb::getImage(KUrl url, int frame, int width, int height) +QPixmap KThumb::getImage(const KUrl& url, int frame, int width, int height) { Mlt::Profile profile(KdenliveSettings::current_profile().toUtf8().constData()); QPixmap pix(width, height);