Commit af7c68f7 authored by Johnny Jazeix's avatar Johnny Jazeix

fix compilation for Qt > 5.14: QSet::fromList(QList) deprecated

parent 587cefd0
......@@ -105,7 +105,12 @@ bool CacheReader::parse( const QString& file )
QSet<QString> CacheReader::documents() const
{
return QSet<QString>::fromList( mRanges.uniqueKeys() );
QList<QString> keys = mRanges.uniqueKeys();
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
return QSet<QString>::fromList( keys );
#else
return QSet<QString>( keys.begin(), keys.end() );
#endif
}
QByteArray CacheReader::document( const QString& id ) const
......
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