From cd4a6314e732545f5a7dfd6ae679163596a537bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Thu, 1 Sep 2016 22:05:35 +0100 Subject: [PATCH] Simplify QStringList->QString conversion. --- src/core/device.h | 1 - src/core/operationrunner.h | 1 - src/core/partition.h | 1 - src/core/volumemanagerdevice.cpp | 11 +---------- 4 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/core/device.h b/src/core/device.h index 4583891..e4453c7 100644 --- a/src/core/device.h +++ b/src/core/device.h @@ -124,4 +124,3 @@ protected: }; #endif - diff --git a/src/core/operationrunner.h b/src/core/operationrunner.h index f7df023..6de7742 100644 --- a/src/core/operationrunner.h +++ b/src/core/operationrunner.h @@ -93,4 +93,3 @@ private: }; #endif - diff --git a/src/core/partition.h b/src/core/partition.h index 9aee018..64bfc52 100644 --- a/src/core/partition.h +++ b/src/core/partition.h @@ -289,4 +289,3 @@ private: QTextStream& operator<<(QTextStream& stream, const Partition& p); #endif - diff --git a/src/core/volumemanagerdevice.cpp b/src/core/volumemanagerdevice.cpp index b4b4def..6210b83 100644 --- a/src/core/volumemanagerdevice.cpp +++ b/src/core/volumemanagerdevice.cpp @@ -32,14 +32,5 @@ VolumeManagerDevice::VolumeManagerDevice(const QString& name, QString VolumeManagerDevice::prettyDeviceNodeList() const { - QString rval; - for (const auto &devNode : deviceNodes()) { - rval += devNode + QStringLiteral(","); - } - - if (rval.size()) { - //chop off the trailing colon - rval.chop(1); - } - return rval; + return deviceNodes().join(QStringLiteral(", ")); }