diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2020-11-20 07:07:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-20 07:07:13 +0100 |
commit | f99d07b0a96cdbcf8c309fc0d7dc13dd2fc0b197 (patch) | |
tree | e2411c56e7c63b6142337bcb28dafc9e55c8316a /src/widget/wpushbutton.cpp | |
parent | 1ddb09583aee53d34f3e4d48fc48ec98619957bb (diff) | |
parent | 9213b41a02c408bf82b0606f3a71646036f7d1e7 (diff) |
Merge pull request #3335 from Holzhaus/clazy-function-args-by-ref
Fix -Wclazy-function-arg-by-ref warnings
Diffstat (limited to 'src/widget/wpushbutton.cpp')
-rw-r--r-- | src/widget/wpushbutton.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/widget/wpushbutton.cpp b/src/widget/wpushbutton.cpp index 4be634c96f..3965b75123 100644 --- a/src/widget/wpushbutton.cpp +++ b/src/widget/wpushbutton.cpp @@ -257,8 +257,11 @@ void WPushButton::setStates(int iStates) { m_align.resize(iStates); } -void WPushButton::setPixmap(int iState, bool bPressed, PixmapSource source, - Paintable::DrawMode mode, double scaleFactor) { +void WPushButton::setPixmap(int iState, + bool bPressed, + const PixmapSource& source, + Paintable::DrawMode mode, + double scaleFactor) { QVector<PaintablePointer>& pixmaps = bPressed ? m_pressedPixmaps : m_unpressedPixmaps; @@ -279,9 +282,9 @@ void WPushButton::setPixmap(int iState, bool bPressed, PixmapSource source, pixmaps.replace(iState, pPixmap); } -void WPushButton::setPixmapBackground(PixmapSource source, - Paintable::DrawMode mode, - double scaleFactor) { +void WPushButton::setPixmapBackground(const PixmapSource& source, + Paintable::DrawMode mode, + double scaleFactor) { // Load background pixmap m_pPixmapBack = WPixmapStore::getPaintable(source, mode, scaleFactor); if (!source.isEmpty() && |