diff --git a/src/plugins/sfdisk/sfdiskgptattributes.cpp b/src/plugins/sfdisk/sfdiskgptattributes.cpp index 06236d3..a3b9d16 100644 --- a/src/plugins/sfdisk/sfdiskgptattributes.cpp +++ b/src/plugins/sfdisk/sfdiskgptattributes.cpp @@ -8,6 +8,7 @@ #include #include +#include const static QString requiredPartition = QStringLiteral("RequiredPartition"); const static QString noBlockIoProtocol = QStringLiteral("NoBlockIOProtocol"); @@ -25,7 +26,7 @@ quint64 SfdiskGptAttributes::toULongLong(const QStringList& attrs) else if (attr.compare(legacyBiosBootable) == 0) attributes |= 0x4ULL; else if (attr.startsWith(guid)) - attributes |= 1ULL << QStringRef(&attr, guid.length(), attr.length() - guid.length()).toULongLong(); + attributes |= 1ULL << QStringView{ attr }.mid(guid.length(), attr.length() - guid.length()).toULongLong(); return attributes; } diff --git a/src/plugins/sfdisk/sfdiskgptattributes.h b/src/plugins/sfdisk/sfdiskgptattributes.h index 0c83a25..ae0e6fe 100644 --- a/src/plugins/sfdisk/sfdiskgptattributes.h +++ b/src/plugins/sfdisk/sfdiskgptattributes.h @@ -8,8 +8,7 @@ #define SFDISKGPTATTRIBUTES__H #include - -class QStringList; +#include /** Sfdisk GPT Attributes helpers. @author Gaƫl PORTAY