Use more toList/toSet to avoid deprecation warnings

Change-Id: I43575a54ff944bf0e89d452d13944fcaee270208
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-06-21 08:40:47 +02:00
parent 6f6949125a
commit 9b0feb726e
6 changed files with 22 additions and 17 deletions

View File

@@ -190,8 +190,7 @@ Core::GeneratedFiles JsonWizardFileGenerator::fileList(Utils::MacroExpander *exp
std::tie(fileList, dirList)
= Utils::partition(concreteFiles, [](const File &f) { return !QFileInfo(f.source).isDir(); });
const QSet<QString> knownFiles
= QSet<QString>::fromList(Utils::transform(fileList, &File::target));
const QSet<QString> knownFiles = Utils::transform<QSet>(fileList, &File::target);
foreach (const File &dir, dirList) {
QDir sourceDir(dir.source);