Commit 220a959b authored by Johnny Jazeix's avatar Johnny Jazeix
Browse files

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

parent 582f534c
...@@ -105,7 +105,12 @@ bool CacheReader::parse( const QString& file ) ...@@ -105,7 +105,12 @@ bool CacheReader::parse( const QString& file )
QSet<QString> CacheReader::documents() const 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 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