summaryrefslogtreecommitdiffhomepage
path: root/tracker-rs/imagewidget.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-07-08 23:20:56 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-07-08 23:20:56 +0200
commit90940a774eab876c38d5cef981b4be5bae67a462 (patch)
tree2e60edc1719ffd53752a55a7f0444166965e90c5 /tracker-rs/imagewidget.cpp
parente3292e1ddaa8d69eb320d2700fc582b4675cf8ce (diff)
modernize only
Diffstat (limited to 'tracker-rs/imagewidget.cpp')
-rw-r--r--tracker-rs/imagewidget.cpp5
1 files changed, 3 insertions, 2 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();
}