Qt: std::move cleanup
Vicki Pfau vi@endrift.com
Mon, 22 Feb 2021 18:13:07 -0800
2 files changed,
3 insertions(+),
3 deletions(-)
M
src/platform/qt/DisplayQt.cpp
→
src/platform/qt/DisplayQt.cpp
@@ -25,8 +25,8 @@ void DisplayQt::startDrawing(std::shared_ptr<CoreController> controller) {
QSize size = controller->screenDimensions(); m_width = size.width(); m_height = size.height(); - m_backing = std::move(QImage()); - m_oldBacking = std::move(QImage()); + m_backing = QImage(); + m_oldBacking = QImage(); m_isDrawing = true; m_context = controller; emit drawingStarted();
M
src/platform/qt/ObjView.cpp
→
src/platform/qt/ObjView.cpp
@@ -271,7 +271,7 @@ }
QListWidgetItem* item = m_objs[i]; ObjInfo info; lookupObj(i, &info); - item->setIcon(QPixmap::fromImage(std::move(compositeObj(info)))); + item->setIcon(QPixmap::fromImage(compositeObj(info))); } }