Commit 2dc1aa42 authored by Riccardo Degli Esposti's avatar Riccardo Degli Esposti 🍌 Committed by Tomaz Canabrava
Browse files

Fix Function parameter 'style' should be passed by const reference.

parent f8fe5a57
......@@ -585,7 +585,7 @@ void ColorScheme::setWallpaper(const QString &path, const ColorSchemeWallpaper::
_wallpaper = new ColorSchemeWallpaper(path, style, anchor);
}
void ColorScheme::setWallpaper(const QString &path, const QString style, const QPointF &anchor)
void ColorScheme::setWallpaper(const QString &path, const QString &style, const QPointF &anchor)
{
ColorSchemeWallpaper::FillStyle fstyle;
fstyle = static_cast<ColorSchemeWallpaper::FillStyle>
......@@ -593,7 +593,7 @@ void ColorScheme::setWallpaper(const QString &path, const QString style, const Q
QMetaEnum::fromType<ColorSchemeWallpaper::FillStyle>()
.keyToValue(style.toStdString().c_str())
, 0));
setWallpaper(path, fstyle, anchor);
}
......
......@@ -134,7 +134,7 @@ public:
bool blur() const;
void setWallpaper(const QString &path, const ColorSchemeWallpaper::FillStyle style, const QPointF &anchor);
void setWallpaper(const QString &path, const QString style, const QPointF &anchor);
void setWallpaper(const QString &path, const QString &style, const QPointF &anchor);
ColorSchemeWallpaper::Ptr wallpaper() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment