Simplify QStringList->QString conversion.
This commit is contained in:
parent
4889a0ef34
commit
cd4a6314e7
|
@ -124,4 +124,3 @@ protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -93,4 +93,3 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -289,4 +289,3 @@ private:
|
||||||
QTextStream& operator<<(QTextStream& stream, const Partition& p);
|
QTextStream& operator<<(QTextStream& stream, const Partition& p);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -32,14 +32,5 @@ VolumeManagerDevice::VolumeManagerDevice(const QString& name,
|
||||||
|
|
||||||
QString VolumeManagerDevice::prettyDeviceNodeList() const
|
QString VolumeManagerDevice::prettyDeviceNodeList() const
|
||||||
{
|
{
|
||||||
QString rval;
|
return deviceNodes().join(QStringLiteral(", "));
|
||||||
for (const auto &devNode : deviceNodes()) {
|
|
||||||
rval += devNode + QStringLiteral(",");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (rval.size()) {
|
|
||||||
//chop off the trailing colon
|
|
||||||
rval.chop(1);
|
|
||||||
}
|
|
||||||
return rval;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue