Commit 234d69b3 authored by Fushan Wen's avatar Fushan Wen 💬 Committed by Alexander Lohnau
Browse files

shell: pass hint by const reference

Function parameter 'hint' should be passed by const reference. (CWE-398)
parent cd4c0f45
......@@ -177,7 +177,7 @@ QString Widget::userBackgroundHints() const
return hintEnum.valueToKey(applet()->userBackgroundHints());
}
void Widget::setUserBackgroundHints(QString hint)
void Widget::setUserBackgroundHints(const QString &hint)
{
QMetaEnum hintEnum = QMetaEnum::fromType<Plasma::Types::BackgroundHints>();
bool ok;
......
......@@ -53,7 +53,7 @@ public:
QString globalShorcut() const;
QString userBackgroundHints() const;
void setUserBackgroundHints(QString hint);
void setUserBackgroundHints(const QString &hint);
Plasma::Applet *applet() const override;
......
Supports Markdown
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