diff --git a/src/fs/filesystem.cpp b/src/fs/filesystem.cpp index 2a4ead8..dd3aef7 100644 --- a/src/fs/filesystem.cpp +++ b/src/fs/filesystem.cpp @@ -32,6 +32,7 @@ #include const std::array< QColor, FileSystem::__lastType > FileSystem::defaultColorCode = +{ { QColor( 220,205,175 ), QColor( 187,249,207 ), @@ -59,6 +60,7 @@ const std::array< QColor, FileSystem::__lastType > FileSystem::defaultColorCode QColor( 242,155,104 ), QColor( 160,210,180 ), QColor( 255,170,0 ) +} }; diff --git a/src/jobs/createpartitiontablejob.cpp b/src/jobs/createpartitiontablejob.cpp index 9e0f002..1bcc735 100644 --- a/src/jobs/createpartitiontablejob.cpp +++ b/src/jobs/createpartitiontablejob.cpp @@ -56,7 +56,7 @@ bool CreatePartitionTableJob::run(Report& parent) } else report->line() << xi18nc("@info:progress", "Creating partition table failed: Could not open device %1.", device().deviceNode()); } 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); diff --git a/src/plugins/libparted/libpartedbackend.cpp b/src/plugins/libparted/libpartedbackend.cpp index 406ef05..e1748b4 100644 --- a/src/plugins/libparted/libpartedbackend.cpp +++ b/src/plugins/libparted/libpartedbackend.cpp @@ -78,7 +78,7 @@ static PedExceptionOption pedExceptionHandler(PedException* e) #if defined LIBPARTED_FS_RESIZE_LIBRARY_SUPPORT 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")); QVariantMap args = { { QStringLiteral("deviceNode"), p.deviceNode() }, @@ -149,7 +149,7 @@ void LibPartedBackend::initFSSupport() */ 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")); QVariantMap args = {{ QStringLiteral("deviceNode"), deviceNode }}; scanAction.setArguments(args);