Simplify QStringList->QString conversion.

This commit is contained in:
Andrius Štikonas 2016-09-01 22:05:35 +01:00
parent 4889a0ef34
commit cd4a6314e7
4 changed files with 1 additions and 13 deletions

View File

@ -124,4 +124,3 @@ protected:
};
#endif

View File

@ -93,4 +93,3 @@ private:
};
#endif

View File

@ -289,4 +289,3 @@ private:
QTextStream& operator<<(QTextStream& stream, const Partition& p);
#endif

View File

@ -32,14 +32,5 @@ VolumeManagerDevice::VolumeManagerDevice(const QString& name,
QString VolumeManagerDevice::prettyDeviceNodeList() const
{
QString rval;
for (const auto &devNode : deviceNodes()) {
rval += devNode + QStringLiteral(",");
}
if (rval.size()) {
//chop off the trailing colon
rval.chop(1);
}
return rval;
return deviceNodes().join(QStringLiteral(", "));
}