Avoid using implicit cast to QString.

This commit is contained in:
Andrius Štikonas 2014-05-29 02:46:58 +01:00
parent f78c34778e
commit 2129ee24ab
1 changed files with 3 additions and 3 deletions

View File

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