aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-14 06:48:14 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-14 06:48:14 (GMT)
commita0465ad4167a1128dbc42bb1cb49f368dfc2633c (patch)
tree9d7a81c789a62dadae4a5cf4e8bc4041b1b1ca2f
parent197586f4aa8e59fae5ae3b69c41df08430714e2a (diff)
Fix clazy warningv16.11.80
-rw-r--r--src/plugin/icon.cpp3
-rw-r--r--src/plugin/icon.h1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugin/icon.cpp b/src/plugin/icon.cpp
index 1b87b97..fc52c3e 100644
--- a/src/plugin/icon.cpp
+++ b/src/plugin/icon.cpp
@@ -142,7 +142,6 @@ void IconNode::render(Grantlee::OutputStream *stream, Grantlee::Context *c) cons
.arg(mSizeOrGroup < KIconLoader::LastGroup ?
IconSize(static_cast<KIconLoader::Group>(mSizeOrGroup))
: mSizeOrGroup)
- .arg(altText.isEmpty() ? iconName : altText)
- .arg(altText); // title is intentionally blank if no alt is provided
+ .arg(altText.isEmpty() ? iconName : altText, altText); // title is intentionally blank if no alt is provided
(*stream) << Grantlee::SafeString(html, Grantlee::SafeString::IsSafe);
}
diff --git a/src/plugin/icon.h b/src/plugin/icon.h
index 140f7b6..a9ca115 100644
--- a/src/plugin/icon.h
+++ b/src/plugin/icon.h
@@ -51,6 +51,7 @@
class IconTag : public Grantlee::AbstractNodeFactory
{
+ Q_OBJECT
public:
explicit IconTag(QObject *parent = Q_NULLPTR);
~IconTag();