Commit 0eef4fcb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile against qt5.15

parent 30850853
......@@ -1069,7 +1069,11 @@ void AudioCDProtocol::parseURLArgs(const QUrl & url)
if (query.isEmpty())
return;
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
const QStringList tokens(query.split(QLatin1Char( '&' ),QString::SkipEmptyParts));
#else
const QStringList tokens(query.split(QLatin1Char( '&' ),Qt::SkipEmptyParts));
#endif
for (QStringList::ConstIterator it(tokens.constBegin()); it != tokens.constEnd(); ++it)
{
......
......@@ -88,7 +88,11 @@ bool EncoderLame::init(){
QByteArray array = proc.readAll();
QString str = QString::fromLocal8Bit( array );
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
d->genreList = str.split( '\n', QString::SkipEmptyParts );
#else
d->genreList = str.split( '\n', Qt::SkipEmptyParts );
#endif
// Remove the numbers in front of every genre
for( QStringList::Iterator it = d->genreList.begin(); it != d->genreList.end(); ++it ) {
QString& genre = *it;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment