Simplify QStringList->QString conversion.
This commit is contained in:
parent
4889a0ef34
commit
cd4a6314e7
|
@ -124,4 +124,3 @@ protected:
|
|||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -93,4 +93,3 @@ private:
|
|||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -289,4 +289,3 @@ private:
|
|||
QTextStream& operator<<(QTextStream& stream, const Partition& p);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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(", "));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue