Silence clang warning + some other small changes.
Fix a typo in a comment
This commit is contained in:
parent
84488896ab
commit
ef2c85e60f
|
@ -32,6 +32,7 @@
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
const std::array< QColor, FileSystem::__lastType > FileSystem::defaultColorCode =
|
const std::array< QColor, FileSystem::__lastType > FileSystem::defaultColorCode =
|
||||||
|
{
|
||||||
{
|
{
|
||||||
QColor( 220,205,175 ),
|
QColor( 220,205,175 ),
|
||||||
QColor( 187,249,207 ),
|
QColor( 187,249,207 ),
|
||||||
|
@ -59,6 +60,7 @@ const std::array< QColor, FileSystem::__lastType > FileSystem::defaultColorCode
|
||||||
QColor( 242,155,104 ),
|
QColor( 242,155,104 ),
|
||||||
QColor( 160,210,180 ),
|
QColor( 160,210,180 ),
|
||||||
QColor( 255,170,0 )
|
QColor( 255,170,0 )
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ bool CreatePartitionTableJob::run(Report& parent)
|
||||||
} else
|
} else
|
||||||
report->line() << xi18nc("@info:progress", "Creating partition table failed: Could not open device <filename>%1</filename>.", device().deviceNode());
|
report->line() << xi18nc("@info:progress", "Creating partition table failed: Could not open device <filename>%1</filename>.", device().deviceNode());
|
||||||
} else if (device().type() == Device::LVM_Device) {
|
} else if (device().type() == Device::LVM_Device) {
|
||||||
//TODO: figure what to do wit LVM partitionTable
|
//TODO: figure what to do with LVM partitionTable
|
||||||
}
|
}
|
||||||
|
|
||||||
jobFinished(*report, rval);
|
jobFinished(*report, rval);
|
||||||
|
|
|
@ -78,7 +78,7 @@ static PedExceptionOption pedExceptionHandler(PedException* e)
|
||||||
#if defined LIBPARTED_FS_RESIZE_LIBRARY_SUPPORT
|
#if defined LIBPARTED_FS_RESIZE_LIBRARY_SUPPORT
|
||||||
static qint64 readSectorsUsedLibParted(const Partition& p)
|
static qint64 readSectorsUsedLibParted(const Partition& p)
|
||||||
{
|
{
|
||||||
KAuth::Action action = QStringLiteral("org.kde.kpmcore.scan.readsectorsused");
|
KAuth::Action action(QStringLiteral("org.kde.kpmcore.scan.readsectorsused"));
|
||||||
action.setHelperId(QStringLiteral("org.kde.kpmcore.scan"));
|
action.setHelperId(QStringLiteral("org.kde.kpmcore.scan"));
|
||||||
QVariantMap args = {
|
QVariantMap args = {
|
||||||
{ QStringLiteral("deviceNode"), p.deviceNode() },
|
{ QStringLiteral("deviceNode"), p.deviceNode() },
|
||||||
|
@ -149,7 +149,7 @@ void LibPartedBackend::initFSSupport()
|
||||||
*/
|
*/
|
||||||
Device* LibPartedBackend::scanDevice(const QString& deviceNode)
|
Device* LibPartedBackend::scanDevice(const QString& deviceNode)
|
||||||
{
|
{
|
||||||
KAuth::Action scanAction = QStringLiteral("org.kde.kpmcore.scan.scandevice");
|
KAuth::Action scanAction(QStringLiteral("org.kde.kpmcore.scan.scandevice"));
|
||||||
scanAction.setHelperId(QStringLiteral("org.kde.kpmcore.scan"));
|
scanAction.setHelperId(QStringLiteral("org.kde.kpmcore.scan"));
|
||||||
QVariantMap args = {{ QStringLiteral("deviceNode"), deviceNode }};
|
QVariantMap args = {{ QStringLiteral("deviceNode"), deviceNode }};
|
||||||
scanAction.setArguments(args);
|
scanAction.setArguments(args);
|
||||||
|
|
Loading…
Reference in New Issue