Fix dead store

Change-Id: Ia7547803a379cd0518fdf3d707717f1bc9976dd1
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Thomas Hartmann
2017-04-19 14:44:49 +02:00
parent 7fa9316a96
commit e2be021cba

View File

@@ -185,37 +185,23 @@ PropertyInfo::PropertyInfo(uint flags)
QString PropertyInfo::toString() const QString PropertyInfo::toString() const
{ {
bool join = false; QStringList list;
QString res; if (isReadable())
if (isReadable()) { list.append("Readable");
res += QLatin1String("Readable");
join = true; if (isWriteable())
} list.append("Writeable");
if (isWriteable()) {
if (join) if (isList())
res += QLatin1Char('|'); list.append("ListType");
res += QLatin1String("Writeable");
join = true; if (canBePointer())
} list.append("Pointer");
if (isList()) {
if (join) if (canBeValue())
res += QLatin1Char('|'); list.append("Value");
res += QLatin1String("ListType");
join = true; return list.join('|');
}
if (canBePointer()) {
if (join)
res += QLatin1Char('|');
res += QLatin1String("Pointer");
join = true;
}
if (canBeValue()) {
if (join)
res += QLatin1Char('|');
res += QLatin1String("Value");
join = true;
}
return res;
} }
} // namespace QmlJS } // namespace QmlJS