diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2017-12-06 10:27:27 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2017-12-08 09:09:59 +0000 |
commit | 18f38ff18ee0b4be28d6c904bf0ebf97b364b149 (patch) | |
tree | 92bca7d3afcccd4e359c18da177a3fe1f8c48006 /src/plugins/cpptools/cpptoolsplugin.cpp | |
parent | e6fb9f08db4250dfa12cd492311e59e11a99de1d (diff) | |
download | qt-creator-18f38ff18ee0b4be28d6c904bf0ebf97b364b149.tar.gz |
Project: Make Project::files return a FileNameList
Change-Id: I75ceb22ac65b8288d824f229d44089cba6fc8ea3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp')
-rw-r--r-- | src/plugins/cpptools/cpptoolsplugin.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp index af192cb082..f344ff871e 100644 --- a/src/plugins/cpptools/cpptoolsplugin.cpp +++ b/src/plugins/cpptools/cpptoolsplugin.cpp @@ -57,6 +57,7 @@ #include <projectexplorer/project.h> #include <projectexplorer/projecttree.h> +#include <utils/algorithm.h> #include <utils/fileutils.h> #include <utils/hostosinfo.h> #include <utils/macroexpander.h> @@ -261,7 +262,8 @@ static QStringList findFilesInProject(const QString &name, QString pattern = QString(1, QLatin1Char('/')); pattern += name; - const QStringList projectFiles = project->files(ProjectExplorer::Project::AllFiles); + const QStringList projectFiles + = Utils::transform(project->files(ProjectExplorer::Project::AllFiles), &Utils::FileName::toString); const QStringList::const_iterator pcend = projectFiles.constEnd(); QStringList candidateList; for (QStringList::const_iterator it = projectFiles.constBegin(); it != pcend; ++it) { |