Qt: std::move cleanup

This commit is contained in:
Vicki Pfau 2021-02-22 18:13:07 -08:00
parent 8926aeea01
commit bb71c72bf8
2 changed files with 3 additions and 3 deletions

View File

@ -25,8 +25,8 @@ void DisplayQt::startDrawing(std::shared_ptr<CoreController> controller) {
QSize size = controller->screenDimensions(); QSize size = controller->screenDimensions();
m_width = size.width(); m_width = size.width();
m_height = size.height(); m_height = size.height();
m_backing = std::move(QImage()); m_backing = QImage();
m_oldBacking = std::move(QImage()); m_oldBacking = QImage();
m_isDrawing = true; m_isDrawing = true;
m_context = controller; m_context = controller;
emit drawingStarted(); emit drawingStarted();

View File

@ -271,7 +271,7 @@ void ObjView::updateObjList(int maxObj) {
QListWidgetItem* item = m_objs[i]; QListWidgetItem* item = m_objs[i];
ObjInfo info; ObjInfo info;
lookupObj(i, &info); lookupObj(i, &info);
item->setIcon(QPixmap::fromImage(std::move(compositeObj(info)))); item->setIcon(QPixmap::fromImage(compositeObj(info)));
} }
} }