Commit e62870b5 authored by Oliver Sander's avatar Oliver Sander
Browse files

Replace call to deprecated method QStringList::toSet

As suggested in the deprecation warning, the call is replaced by
QSet(begin,end).
parent 25984bb2
Pipeline #33865 failed with stage
in 60 minutes and 26 seconds
......@@ -455,7 +455,11 @@ void Shell::fileOpen()
continue;
}
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
globPatterns.unite(QSet<QString>(globs.begin(), globs.end()));
#else
globPatterns.unite(globs.toSet());
#endif
namedGlobs[mimeType.comment()].append(globs);
}
......
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