Commit e2be021c authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

Fix dead store



Change-Id: Ia7547803a379cd0518fdf3d707717f1bc9976dd1
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 7fa9316a
......@@ -185,37 +185,23 @@ PropertyInfo::PropertyInfo(uint flags)
QString PropertyInfo::toString() const
{
bool join = false;
QString res;
if (isReadable()) {
res += QLatin1String("Readable");
join = true;
}
if (isWriteable()) {
if (join)
res += QLatin1Char('|');
res += QLatin1String("Writeable");
join = true;
}
if (isList()) {
if (join)
res += QLatin1Char('|');
res += QLatin1String("ListType");
join = true;
}
if (canBePointer()) {
if (join)
res += QLatin1Char('|');
res += QLatin1String("Pointer");
join = true;
}
if (canBeValue()) {
if (join)
res += QLatin1Char('|');
res += QLatin1String("Value");
join = true;
}
return res;
QStringList list;
if (isReadable())
list.append("Readable");
if (isWriteable())
list.append("Writeable");
if (isList())
list.append("ListType");
if (canBePointer())
list.append("Pointer");
if (canBeValue())
list.append("Value");
return list.join('|');
}
} // namespace QmlJS
......
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