summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <[email protected]>2017-12-30 22:00:34 -0500
committerKurt Hindenburg <[email protected]>2017-12-30 22:00:34 -0500
commitd8171f8e883c08de4020284d2be437252cce3d4b (patch)
tree968b4c30e5239b7673f378078a00f86a1f21c202
parent2ffcca1c906ed038abb40f5d08fb86c521436a6e (diff)
Pass small and trivially-copyable type by value QRect
-rw-r--r--src/ColorScheme.cpp2
-rw-r--r--src/ColorScheme.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ColorScheme.cpp b/src/ColorScheme.cpp
index 859dd9b..5ad349a 100644
--- a/src/ColorScheme.cpp
+++ b/src/ColorScheme.cpp
@@ -479,7 +479,7 @@ bool ColorSchemeWallpaper::isNull() const
return _path.isEmpty();
}
-bool ColorSchemeWallpaper::draw(QPainter &painter, const QRect &rect, qreal opacity)
+bool ColorSchemeWallpaper::draw(QPainter &painter, const QRect rect, qreal opacity)
{
if ((_picture == nullptr) || _picture->isNull()) {
return false;
diff --git a/src/ColorScheme.h b/src/ColorScheme.h
index d46c55f..3363941 100644
--- a/src/ColorScheme.h
+++ b/src/ColorScheme.h
@@ -49,7 +49,7 @@ public:
void load();
/** Returns true if wallpaper available and drawn */
- bool draw(QPainter &painter, const QRect &rect, qreal opacity = 1.0);
+ bool draw(QPainter &painter, const QRect rect, qreal opacity = 1.0);
bool isNull() const;