Remove unnecessary "this->".
This commit is contained in:
parent
eb4e985933
commit
16f76b1623
|
@ -88,15 +88,15 @@ qint64 zfs::maxCapacity() const
|
|||
bool zfs::remove(Report& report, const QString& deviceNode) const
|
||||
{
|
||||
Q_UNUSED(deviceNode)
|
||||
ExternalCommand cmd(report, QStringLiteral("zpool"), { QStringLiteral("destroy"), QStringLiteral("-f"), this->label() });
|
||||
ExternalCommand cmd(report, QStringLiteral("zpool"), { QStringLiteral("destroy"), QStringLiteral("-f"), label() });
|
||||
return cmd.run(-1) && cmd.exitCode() == 0;
|
||||
}
|
||||
|
||||
bool zfs::writeLabel(Report& report, const QString& deviceNode, const QString& newLabel)
|
||||
{
|
||||
Q_UNUSED(deviceNode)
|
||||
ExternalCommand cmd1(report, QStringLiteral("zpool"), { QStringLiteral("export"), this->label() });
|
||||
ExternalCommand cmd2(report, QStringLiteral("zpool"), { QStringLiteral("import"), this->label(), newLabel });
|
||||
ExternalCommand cmd1(report, QStringLiteral("zpool"), { QStringLiteral("export"), label() });
|
||||
ExternalCommand cmd2(report, QStringLiteral("zpool"), { QStringLiteral("import"), label(), newLabel });
|
||||
return cmd1.run(-1) && cmd1.exitCode() == 0 && cmd2.run(-1) && cmd2.exitCode() == 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue