Use more C++11 initializer lists.
This commit is contained in:
parent
ea664bfffc
commit
dcfb9f181f
|
@ -435,8 +435,7 @@ bool LvmDevice::movePV(Report& report, const QString& pvPath, const QStringList&
|
||||||
if (FS::lvm2_pv::getAllocatedPE(pvPath) <= 0)
|
if (FS::lvm2_pv::getAllocatedPE(pvPath) <= 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
QStringList args = QStringList();
|
QStringList args = { QStringLiteral("pvmove") };
|
||||||
args << QStringLiteral("pvmove");
|
|
||||||
args << pvPath;
|
args << pvPath;
|
||||||
if (!destinations.isEmpty())
|
if (!destinations.isEmpty())
|
||||||
for (const auto &destPath : destinations)
|
for (const auto &destPath : destinations)
|
||||||
|
@ -448,8 +447,7 @@ bool LvmDevice::movePV(Report& report, const QString& pvPath, const QStringList&
|
||||||
|
|
||||||
bool LvmDevice::createVG(Report& report, const QString vgName, const QVector<const Partition*>& pvList, const qint32 peSize)
|
bool LvmDevice::createVG(Report& report, const QString vgName, const QVector<const Partition*>& pvList, const qint32 peSize)
|
||||||
{
|
{
|
||||||
QStringList args = QStringList();
|
QStringList args = { QStringLiteral("vgcreate"), QStringLiteral("--physicalextentsize"), QString::number(peSize) };
|
||||||
args << QStringLiteral("vgcreate") << QStringLiteral("--physicalextentsize") << QString::number(peSize);
|
|
||||||
args << vgName;
|
args << vgName;
|
||||||
for (const auto &p : pvList) {
|
for (const auto &p : pvList) {
|
||||||
if (p->roles().has(PartitionRole::Luks))
|
if (p->roles().has(PartitionRole::Luks))
|
||||||
|
|
Loading…
Reference in New Issue