Commit 9694b4a5 authored by Frederik Gladhorn's avatar Frederik Gladhorn

Simplify string comparison

Reviewers: #plasma, apol

Reviewed By: apol

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D14078
parent 973bef83
......@@ -102,7 +102,7 @@ void Parser::qvariant2qobject(const QVariantMap &variant, QObject *object)
if (value.canConvert(property.type())) {
value.convert(property.type());
object->setProperty(iter.key().toLatin1().constData(), value);
} else if (QString(QLatin1String("QVariant")).compare(QLatin1String(property.typeName())) == 0) {
} else if (QLatin1String("QVariant") == QLatin1String(property.typeName())) {
object->setProperty(iter.key().toLatin1().constData(), value);
}
}
......
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