fix deprecation: QString::SkipEmptyParts is now Qt::SkipEmptyParts

This commit is contained in:
John Regan
2021-07-19 15:00:32 -04:00
parent b296cf7113
commit cc0d116986
29 changed files with 45 additions and 45 deletions

View File

@@ -160,7 +160,7 @@ static void getRange(const QStringList &params, qint32 &from, qint32 &to)
if (str.startsWith("Range:")) {
int start=str.indexOf("bytes=");
if (start>0) {
QStringList range=str.mid(start+6).split("-", QString::SkipEmptyParts);
QStringList range=str.mid(start+6).split("-", Qt::SkipEmptyParts);
if (1==range.length()) {
from=range.at(0).toLong();
} else if (2==range.length()) {
@@ -289,7 +289,7 @@ void HttpSocket::readClient()
if (song.isCdda()) {
#if defined CDDB_FOUND || defined MUSICBRAINZ5_FOUND
QStringList parts=song.file.split("/", QString::SkipEmptyParts);
QStringList parts=song.file.split("/", Qt::SkipEmptyParts);
if (parts.length()>=3) {
QString dev=QLatin1Char('/')+parts.at(1)+QLatin1Char('/')+parts.at(2);
CdParanoia cdparanoia(dev, false, false, true, Settings::self()->paranoiaOffset());