QMovie: use rvalue more
Change-Id: Idf052436190bf225662ff6c1d4b7b8e3c0c84685 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
c6c31b14a7
commit
ef02dd14cd
@ -379,7 +379,7 @@ QFrameInfo QMoviePrivate::infoForFrame(int frameNumber)
|
||||
}
|
||||
if (frameNumber > greatestFrameNumber)
|
||||
greatestFrameNumber = frameNumber;
|
||||
QPixmap aPixmap = QPixmap::fromImage(anImage);
|
||||
QPixmap aPixmap = QPixmap::fromImage(std::move(anImage));
|
||||
int aDelay = reader->nextImageDelay();
|
||||
return QFrameInfo(aPixmap, aDelay);
|
||||
} else if (frameNumber != 0) {
|
||||
@ -405,7 +405,7 @@ QFrameInfo QMoviePrivate::infoForFrame(int frameNumber)
|
||||
return QFrameInfo(); // Invalid
|
||||
}
|
||||
greatestFrameNumber = i;
|
||||
QPixmap aPixmap = QPixmap::fromImage(anImage);
|
||||
QPixmap aPixmap = QPixmap::fromImage(std::move(anImage));
|
||||
int aDelay = reader->nextImageDelay();
|
||||
QFrameInfo info(aPixmap, aDelay);
|
||||
// Cache it!
|
||||
|
Loading…
Reference in New Issue
Block a user