mirror of https://github.com/mgba-emu/mgba.git
Qt: std::move cleanup
This commit is contained in:
parent
8926aeea01
commit
bb71c72bf8
|
@ -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();
|
||||||
|
|
|
@ -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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue