From 2129ee24aba1d00492bd328424d87ba7ebe87d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Thu, 29 May 2014 02:46:58 +0100 Subject: [PATCH] Avoid using implicit cast to QString. --- src/plugins/libparted/libpartedpartitiontable.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/libparted/libpartedpartitiontable.cpp b/src/plugins/libparted/libpartedpartitiontable.cpp index 26d37a9..5939dd2 100644 --- a/src/plugins/libparted/libpartedpartitiontable.cpp +++ b/src/plugins/libparted/libpartedpartitiontable.cpp @@ -145,7 +145,7 @@ static PedFileSystemType* getPedFileSystemType(FileSystem::Type t) QString LibPartedPartitionTable::createPartition(Report& report, const Partition& partition) { - Q_ASSERT(partition.devicePath() == pedDevice()->path); + Q_ASSERT(partition.devicePath() == QString::fromUtf8(pedDevice()->path)); QString rval = QString(); @@ -201,7 +201,7 @@ QString LibPartedPartitionTable::createPartition(Report& report, const Partition bool LibPartedPartitionTable::deletePartition(Report& report, const Partition& partition) { - Q_ASSERT(partition.devicePath() == pedDevice()->path); + Q_ASSERT(partition.devicePath() == QString::fromUtf8(pedDevice()->path)); bool rval = false; @@ -224,7 +224,7 @@ bool LibPartedPartitionTable::deletePartition(Report& report, const Partition& p bool LibPartedPartitionTable::updateGeometry(Report& report, const Partition& partition, qint64 sector_start, qint64 sector_end) { - Q_ASSERT(partition.devicePath() == pedDevice()->path); + Q_ASSERT(partition.devicePath() == QString::fromUtf8(pedDevice()->path)); bool rval = false;