summaryrefslogtreecommitdiffhomepage
path: root/tracker-rs
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-rs')
-rw-r--r--tracker-rs/imagewidget.cpp5
-rw-r--r--tracker-rs/imagewidget.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/tracker-rs/imagewidget.cpp b/tracker-rs/imagewidget.cpp
index 63986234..50a904f5 100644
--- a/tracker-rs/imagewidget.cpp
+++ b/tracker-rs/imagewidget.cpp
@@ -6,6 +6,7 @@
*/
#include "imagewidget.h"
+#include <utility>
#include <QPainter>
ImageWidget::ImageWidget(QWidget *parent) :
@@ -14,11 +15,11 @@ ImageWidget::ImageWidget(QWidget *parent) :
mImage.fill(Qt::gray);
}
-void ImageWidget::setImage(const QImage image)
+void ImageWidget::setImage(QImage image)
{
{
QMutexLocker lock(&mMutex);
- mImage = image;
+ mImage = std::move(image);
}
repaint();
}
diff --git a/tracker-rs/imagewidget.h b/tracker-rs/imagewidget.h
index e8b6e61e..f04eb1a3 100644
--- a/tracker-rs/imagewidget.h
+++ b/tracker-rs/imagewidget.h
@@ -15,7 +15,7 @@ class ImageWidget : public QWidget {
Q_OBJECT
public:
ImageWidget(QWidget* parent = 0);
- void setImage(const QImage image);
+ void setImage(QImage image);
private:
QImage mImage;