Remove extra semicolon after Q_UNUSED.

This commit is contained in:
Andrius Štikonas 2018-07-12 00:12:43 +01:00
parent d51404c7f1
commit b11b73b1e5
6 changed files with 22 additions and 22 deletions

View File

@ -71,21 +71,21 @@ const QStringList& SoftwareRAID::partitionNodes() const
qint64 SoftwareRAID::partitionSize(QString &partitionPath) const qint64 SoftwareRAID::partitionSize(QString &partitionPath) const
{ {
Q_UNUSED(partitionPath); Q_UNUSED(partitionPath)
return 0; return 0;
} }
bool SoftwareRAID::growArray(Report &report, const QStringList &devices) bool SoftwareRAID::growArray(Report &report, const QStringList &devices)
{ {
Q_UNUSED(report); Q_UNUSED(report)
Q_UNUSED(devices); Q_UNUSED(devices)
return false; return false;
} }
bool SoftwareRAID::shrinkArray(Report &report, const QStringList &devices) bool SoftwareRAID::shrinkArray(Report &report, const QStringList &devices)
{ {
Q_UNUSED(report); Q_UNUSED(report)
Q_UNUSED(devices); Q_UNUSED(devices)
return false; return false;
} }
@ -186,13 +186,13 @@ qint64 SoftwareRAID::getArraySize(const QString &path)
QString SoftwareRAID::getUUID(const QString &path) QString SoftwareRAID::getUUID(const QString &path)
{ {
Q_UNUSED(path); Q_UNUSED(path)
return QStringLiteral(); return QStringLiteral();
} }
QStringList SoftwareRAID::getDevicePathList(const QString &path) QStringList SoftwareRAID::getDevicePathList(const QString &path)
{ {
Q_UNUSED(path); Q_UNUSED(path)
return {}; return {};
} }
@ -213,22 +213,22 @@ bool SoftwareRAID::createSoftwareRAID(Report &report,
bool SoftwareRAID::deleteSoftwareRAID(Report &report, bool SoftwareRAID::deleteSoftwareRAID(Report &report,
SoftwareRAID &raidDevice) SoftwareRAID &raidDevice)
{ {
Q_UNUSED(report); Q_UNUSED(report)
Q_UNUSED(raidDevice); Q_UNUSED(raidDevice)
return false; return false;
} }
bool SoftwareRAID::assembleSoftwareRAID(Report &report, const SoftwareRAID &raidDevice) bool SoftwareRAID::assembleSoftwareRAID(Report &report, const SoftwareRAID &raidDevice)
{ {
Q_UNUSED(report); Q_UNUSED(report)
Q_UNUSED(raidDevice); Q_UNUSED(raidDevice)
return false; return false;
} }
bool SoftwareRAID::stopSoftwareRAID(Report &report, const SoftwareRAID &raidDevice) bool SoftwareRAID::stopSoftwareRAID(Report &report, const SoftwareRAID &raidDevice)
{ {
Q_UNUSED(report); Q_UNUSED(report)
Q_UNUSED(raidDevice); Q_UNUSED(raidDevice)
return false; return false;
} }

View File

@ -112,8 +112,8 @@ bool exfat::writeLabel(Report& report, const QString& deviceNode, const QString&
bool exfat::updateUUID(Report& report, const QString& deviceNode) const bool exfat::updateUUID(Report& report, const QString& deviceNode) const
{ {
Q_UNUSED(report); Q_UNUSED(report)
Q_UNUSED(deviceNode); Q_UNUSED(deviceNode)
return false; return false;
} }

View File

@ -89,7 +89,7 @@ bool linuxswap::create(Report& report, const QString& deviceNode)
bool linuxswap::resize(Report& report, const QString& deviceNode, qint64 length) const bool linuxswap::resize(Report& report, const QString& deviceNode, qint64 length) const
{ {
Q_UNUSED(length); Q_UNUSED(length)
const QString label = readLabel(deviceNode); const QString label = readLabel(deviceNode);
const QString uuid = readUUID(deviceNode); const QString uuid = readUUID(deviceNode);
@ -145,14 +145,14 @@ QString linuxswap::unmountTitle() const
} }
bool linuxswap::canMount(const QString& deviceNode, const QString& mountPoint) const { bool linuxswap::canMount(const QString& deviceNode, const QString& mountPoint) const {
Q_UNUSED(deviceNode); Q_UNUSED(deviceNode)
// linux swap doesn't require mount point to activate // linux swap doesn't require mount point to activate
return mountPoint != QStringLiteral("/"); return mountPoint != QStringLiteral("/");
} }
bool linuxswap::mount(Report& report, const QString& deviceNode, const QString& mountPoint) bool linuxswap::mount(Report& report, const QString& deviceNode, const QString& mountPoint)
{ {
Q_UNUSED(mountPoint); Q_UNUSED(mountPoint)
ExternalCommand cmd(report, QStringLiteral("swapon"), { deviceNode }); ExternalCommand cmd(report, QStringLiteral("swapon"), { deviceNode });
return cmd.run(-1) && cmd.exitCode() == 0; return cmd.run(-1) && cmd.exitCode() == 0;
} }

View File

@ -170,7 +170,7 @@ bool ntfs::resize(Report& report, const QString& deviceNode, qint64 length) cons
bool ntfs::updateUUID(Report& report, const QString& deviceNode) const bool ntfs::updateUUID(Report& report, const QString& deviceNode) const
{ {
Q_UNUSED(report); Q_UNUSED(report)
ExternalCommand cmd(QStringLiteral("ntfslabel"), { QStringLiteral("--new-serial"), deviceNode }); ExternalCommand cmd(QStringLiteral("ntfslabel"), { QStringLiteral("--new-serial"), deviceNode });
return cmd.run(-1) && cmd.exitCode() == 0; return cmd.run(-1) && cmd.exitCode() == 0;

View File

@ -99,7 +99,7 @@ qint64 ocfs2::maxCapacity() const
qint64 ocfs2::readUsedCapacity(const QString& deviceNode) const qint64 ocfs2::readUsedCapacity(const QString& deviceNode) const
{ {
Q_UNUSED(deviceNode); Q_UNUSED(deviceNode)
return -1; return -1;
} }

View File

@ -54,8 +54,8 @@ std::unique_ptr<CoreBackendPartitionTable> DummyDevice::openPartitionTable()
bool DummyDevice::createPartitionTable(Report& report, const PartitionTable& ptable) bool DummyDevice::createPartitionTable(Report& report, const PartitionTable& ptable)
{ {
Q_UNUSED(report); Q_UNUSED(report)
Q_UNUSED(ptable); Q_UNUSED(ptable)
return true; return true;
} }