Silence clang warning + some other small changes.

Fix a typo in a comment
This commit is contained in:
Andrius Štikonas 2016-08-24 23:01:36 +01:00
parent 84488896ab
commit ef2c85e60f
3 changed files with 5 additions and 3 deletions

View File

@ -32,6 +32,7 @@
#include <QDebug>
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 )
}
};

View File

@ -56,7 +56,7 @@ bool CreatePartitionTableJob::run(Report& parent)
} else
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) {
//TODO: figure what to do wit LVM partitionTable
//TODO: figure what to do with LVM partitionTable
}
jobFinished(*report, rval);

View File

@ -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);